Пример #1
0
        public RuleSet(ParserGeneratorSettings settings)
        {
            this.Settings = settings ?? new ParserGeneratorSettings();

            AddTokens();
            AddIgnoredContent();
        }
Пример #2
0
 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;
 }
Пример #3
0
 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)
 {
 }
Пример #4
0
 public GeneratorModel(Dictionary <int, State> states, ParserGeneratorSettings settings)
 {
     States   = states;
     Settings = new NullingExpandoObject(settings);
 }