Exemple #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;
					}
Exemple #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;
					}
Exemple #3
0
				public static bool Peek(CharStream stream)
				{
					return stream.PeekReg(@"[\-\+0-9]");
				}
Exemple #4
0
				public static bool Peek(CharStream stream)
				{
					return stream.PeekReg(@"[_a-zA-Z]");
				}