Example #1
0
        public Parser(Lexer.Lexer lexer, ParseMap map)
        {
            List <Lexer.Lexme> list = new List <Stellarmass.LPC.Lexer.Lexme>(100);

            foreach (Lexer.Line line in lexer.LexedLines)
            {
                foreach (Lexer.Lexme lexme in line.Tokens)
                {
                    list.Add(lexme);
                }
            }
            Tokens = map.Parse(list);
        }
Example #2
0
 public SyntaxRules(out ParseMap map)
 {
     Syntaxes = CreateRules();
     map      = new ParseMap(Syntaxes);
 }