Пример #1
0
        public AstNode Parse(TokenQueue tokens)
        {
            Console.WriteLine("--- PARSER ---");

            Types.AstNode result;
            try
            {
                result = Parser.Parse(ListModule.OfSeq(tokens.Select(AsParserToken)));
            }
            catch (ParseException ex)
            {
                throw new ParseException("There was a problem parsing the source file", ex);
            }

            return(AstNode(result));
        }