public RuleTypeBuilder(ParserGeneratorConfig config, IEnumerable <RuleStruct> ruleTypes) { _config = config; _baseTypeName = config.BaseClass; _helperName = config.HelperClass; _resolver = new RuleStructResolver(_ruleTypes = ruleTypes); }
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));
public TypeInferenceMutator(ParserGeneratorConfig config) { _config = config; }
private void ParseDirectives(List<AphidExpression> nodes) { _config = new ParserGeneratorConfig( ParseDirective(nodes, _tokenAttribute), ParseDirective(nodes, _baseAttribute), ParseDirective(nodes, _nodeAttribute), ParseDirectiveArray(nodes, _namespaceAttribute), ParseDirective(nodes, _parserAttribute)); }
public TypeInferenceMutator(ParserGeneratorConfig config) => _config = config;