Ejemplo n.º 1
0
 private void _CompoundVisit(ASTCompoundNode node)
 {
     foreach (ASTNode n in node.Children)
     {
         _Visit(n);
     }
 }
Ejemplo n.º 2
0
        private ASTCompoundNode _CompoundStatement()
        {
            _Eat(TokenType.LCRLY);
            List <ASTNode> tmpNodes;

            tmpNodes = _StatementList();
            _Eat(TokenType.RCRLY);

            ASTCompoundNode node = new ASTCompoundNode();

            node.Children = tmpNodes;

            return(node);
        }