public static bool PeekAndParse( CharStream stream, out AST.INode expression) { if (stream.PeekNextRange(2) == "{{") { expression = Expander.Parse(stream); return true; } expression = null; return false; }
public static bool Peek(CharStream stream, Quote.Info quote = null) { if (quote != null) { var raw = quote.ToString(); var output = stream.PeekNextRange(raw.Length); return raw == output; } char next = stream.PeekNext(); return next == '\'' || next == '\"'; }