private void _CompoundVisit(ASTCompoundNode node)
 {
     foreach (ASTNode n in node.Children)
     {
         _Visit(n);
     }
 }
Beispiel #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);
        }