Exemplo n.º 1
0
        public static UsingNode Parse(Lexer lex)
        {
            UsingNode n = new UsingNode();

            lex.Dequeue("using");
            n.Identifier = TRefNode.Parse(lex);
            lex.Dequeue(TokenType.Semi);

            return(n);
        }
Exemplo n.º 2
0
        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);
        }