예제 #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;
        }
예제 #2
0
 public Parser()
 {
     ErrorDispatcher = new ErrorsEventDispatcher();
     table = ParseTableBuilder.Build();
     scanner = new Scanner();
 }