Ejemplo n.º 1
0
 public ProductionActionTypeContext(TypeTable typeTable,
                                    INoAction noAction)
 {
     this.typeTable = typeTable;
     this.noAction  = noAction;
     missing        = new MissingReferenceTable();
 }
Ejemplo n.º 2
0
 public DefinitionActionTypeContext(TypeTable typeTable,
                                    MissingReferenceTable missing,
                                    INoAction noAction,
                                    string productionName)
 {
     this.typeTable      = typeTable;
     this.missing        = missing;
     this.noAction       = noAction;
     this.productionName = productionName;
 }
Ejemplo n.º 3
0
 public GrammarBuilder(Logger logger,
                       ParseTree.Identifier start)
 {
     this.logger = logger;
     this.start  = start;
     noAction    = new FirstNoAction();
     symbols     = new SymbolTable();
     TypeTable   = new TypeTable();
     productions = new List <Production>();
 }
Ejemplo n.º 4
0
 public ReduceContext(TypeTable typeTable,
                      ITerminals terminals,
                      ActionExpr action,
                      INoAction noAction,
                      int id)
 {
     this.typeTable = typeTable;
     this.terminals = terminals;
     this.action    = action;
     this.noAction  = noAction;
     Id             = id;
 }
Ejemplo n.º 5
0
 public GrammarBuilder Options(Options options)
 {
     options.TryGet("no_action", out var value);
     if (value.EqualsI("null"))
     {
         noAction = new NullNoAction();
     }
     else if (value.EqualsI("tuple"))
     {
         noAction = new TupleNoAction();
     }
     return(this);
 }