示例#1
0
        public void AddAttr(string type, ITerminalNode token)
        {
            int start, end;

            token.GetBounds(out start, out end);
            AddAttrNode(type, null, start, end);
        }
        public static string GetText(this ITerminalNode token, string input)
        {
            if (input == null)
            {
                return(null);
            }
            int start, end;

            token.GetBounds(out start, out end);
            return(input.Substring(start, end - start));
        }
示例#3
0
		public void AddAttr(string type, ITerminalNode token)
		{
			int start, end;
			token.GetBounds(out start, out end);
			AddAttrNode(type, null, start, end);
		}