Beispiel #1
0
        public Node ParseBlock()
        {
            Token t = lexer.GetNext();

            if (t.value == "{")
            {
                var sl = ParseStatementList();
                if ((t = lexer.GetNext()).value == "}")
                {
                    return(sl);
                }
                lexer.PutBack(t);
                return(new NodeError());
            }
            lexer.PutBack(t);
            return(ParseStatement());
        }