예제 #1
0
파일: RuleSet.cs 프로젝트: mpkorstanje/berp
        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);
 }