public RuleSet(ParserGeneratorSettings settings) { this.Settings = settings ?? new ParserGeneratorSettings(); AddTokens(); AddIgnoredContent(); }
public Generator(string ns, string className, string targetNamespace, string targetClassName, bool simpleTokenMatcher, int maxCollectedError, ParserGeneratorSettings settings) { this.ns = ns; this.className = className; this.targetNamespace = targetNamespace ?? ns; this.targetClassName = targetClassName; this.simpleTokenMatcher = simpleTokenMatcher; this.maxCollectedError = maxCollectedError; this.settings = settings; }
public Generator(ParserGeneratorSettings settings) : this( settings.GetSetting("Namespace", "ParserGen"), settings.GetSetting("ClassName", "Parser"), settings.GetSetting("TargetNamespace", (string)null), settings.GetSetting("TargetClassName", "Ast"), settings.GetSetting("SimpleTokenMatcher", false), settings.GetSetting("MaxCollectedError", 10), settings) { }
public GeneratorModel(Dictionary <int, State> states, ParserGeneratorSettings settings) { States = states; Settings = new NullingExpandoObject(settings); }