Exemplo n.º 1
0
 public RuleTypeBuilder(ParserGeneratorConfig config, IEnumerable <RuleStruct> ruleTypes)
 {
     _config       = config;
     _baseTypeName = config.BaseClass;
     _helperName   = config.HelperClass;
     _resolver     = new RuleStructResolver(_ruleTypes = ruleTypes);
 }
Exemplo n.º 2
0
 private void ParseDirectives(List <AphidExpression> nodes) => _config = new ParserGeneratorConfig(
     ParseDirective(nodes, ParserGeneratorDirective.TokenAttribute),
     ParseDirective(nodes, ParserGeneratorDirective.BaseAttribute),
     ParseDirective(nodes, ParserGeneratorDirective.NodeAttribute),
     ParseDirectiveArray(nodes, ParserGeneratorDirective.NamespaceAttribute),
     ParseDirective(nodes, ParserGeneratorDirective.ParserAttribute),
     ParseBooleanDirective(nodes, ParserGeneratorDirective.MutableAttribute));
Exemplo n.º 3
0
 public TypeInferenceMutator(ParserGeneratorConfig config)
 {
     _config = config;
 }
Exemplo n.º 4
0
 private void ParseDirectives(List<AphidExpression> nodes)
 {
     _config = new ParserGeneratorConfig(
         ParseDirective(nodes, _tokenAttribute),
         ParseDirective(nodes, _baseAttribute),
         ParseDirective(nodes, _nodeAttribute),
         ParseDirectiveArray(nodes, _namespaceAttribute),
         ParseDirective(nodes, _parserAttribute));
 }
Exemplo n.º 5
0
 public TypeInferenceMutator(ParserGeneratorConfig config) => _config = config;