Ejemplo n.º 1
0
					public static bool PeekAndParse(
						CharStream stream, out AST.INode expression)
					{
						if (stream.PeekReg(@"(\$|\@|\_|)?\w+(\.|\[)"))
						{
							expression = Property.Parse(stream);
							return true;
						}
						
						expression = null;
						return false;
					}
Ejemplo n.º 2
0
					public static bool PeekAndParse(
						CharStream stream, out AST.INode expression)
					{
						if (stream.PeekReg(@"[$@]?\w+(\.\w+)*::"))
						{
							expression = Attribute.Parse(stream);
							return true;
						}
						
						expression = null;
						return false;
					}
Ejemplo n.º 3
0
				public static bool Peek(CharStream stream)
				{
					return stream.PeekReg(@"[\-\+0-9]");
				}
Ejemplo n.º 4
0
				public static bool Peek(CharStream stream)
				{
					return stream.PeekReg(@"[_a-zA-Z]");
				}