public static UsingNode Parse(Lexer lex) { UsingNode n = new UsingNode(); lex.Dequeue("using"); n.Identifier = TRefNode.Parse(lex); lex.Dequeue(TokenType.Semi); return(n); }
public static ProgramNode Parse(Lexer lex) { ProgramNode n = new ProgramNode(); while (UsingNode.IsPresent(lex)) { n.Using.Add(UsingNode.Parse(lex)); } n.Namespace = NamespaceNode.Parse(lex); return(n); }