Exemplo n.º 1
0
        public static ParseTable Build()
        {
            var builder = new ParseTableBuilder();

            var table = new ParseTable();
            table.SetActionsTable(builder.CreateActionsTable());
            table.SetGoToTable(builder.CreateGoToTable());
            table.SetProductionsInfoTable(builder.CreateProductionsInfo());
            return table;
        }
Exemplo n.º 2
0
 public Parser()
 {
     ErrorDispatcher = new ErrorsEventDispatcher();
     table = ParseTableBuilder.Build();
     scanner = new Scanner();
 }