public static bool PeekAndParse( CharStream stream, out AST.INode expression) { if (stream.PeekReg(@"(\$|\@|\_|)?\w+(\.|\[)")) { expression = Property.Parse(stream); return true; } expression = null; return false; }
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; }
public static bool Peek(CharStream stream) { return stream.PeekReg(@"[\-\+0-9]"); }
public static bool Peek(CharStream stream) { return stream.PeekReg(@"[_a-zA-Z]"); }