Ejemplo n.º 1
0
        public RuleSet(ParserGeneratorSettings settings)
        {
            this.Settings = settings ?? new ParserGeneratorSettings();

            AddTokens();
            AddIgnoredContent();
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 4
0
 public GeneratorModel(Dictionary <int, State> states, ParserGeneratorSettings settings)
 {
     States   = states;
     Settings = new NullingExpandoObject(settings);
 }