예제 #1
0
파일: Property.cs 프로젝트: GlenDC/L20n.cs
					public static bool PeekAndParse(
						CharStream stream, out AST.INode expression)
					{
						if (stream.PeekReg(@"(\$|\@|\_|)?\w+(\.|\[)"))
						{
							expression = Property.Parse(stream);
							return true;
						}
						
						expression = null;
						return false;
					}
예제 #2
0
파일: Attribute.cs 프로젝트: GlenDC/L20n.cs
					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;
					}
예제 #3
0
파일: Literal.cs 프로젝트: GlenDC/L20n.cs
				public static bool Peek(CharStream stream)
				{
					return stream.PeekReg(@"[\-\+0-9]");
				}
예제 #4
0
				public static bool Peek(CharStream stream)
				{
					return stream.PeekReg(@"[_a-zA-Z]");
				}