Example #1
0
 private Grammar(Compatible c, Dictionary <string, Token> tokens, Dictionary <string, NamedRule> rules, List <string> implicitNames)
     : base(c)
 {
     this.tokens        = tokens;
     this.rules         = rules;
     this.implicitNames = implicitNames;
 }
Example #2
0
 internal Grammar(Compatible c)
     : base(c)
 {
     Super         = new Supervisor();
     tokens        = new Dictionary <string, Token>();
     rules         = new Dictionary <string, NamedRule>();
     implicitNames = new List <string>();
 }
Example #3
0
        public bool IsCompatibleWith(Compatible other)
        {
            if (ReferenceEquals(other, null))
            {
                throw new NullReferenceException();
            }

            return(CompatibilityGuid == other.CompatibilityGuid);
        }
Example #4
0
 public Compatible(Compatible c)
     : this(c.CompatibilityGuid)
 {
 }