Ejemplo n.º 1
0
 public GrammarType(GrammarSymbol symbol, bool isRef, bool isOptional, bool isList)
 {
     Symbol     = symbol;
     IsOptional = isOptional;
     IsList     = isList;
     IsRef      = isRef;
 }
 public GrammarRule(
     GrammarSymbol nonterminal,
     IEnumerable <GrammarSymbol> parents,
     IEnumerable <GrammarProperty> properties)
 {
     Nonterminal = nonterminal;
     Parents     = parents.ToFixedList();
     Properties  = properties.ToFixedList();
 }