protected BnfiTermNonTerminal(Type domainType, string name) : this(name : name ?? GrammarHelper.TypeNameWithDeclaringTypes(domainType)) { if (domainType == null) { throw new ArgumentNullException("domainType"); } this.domainType = domainType; this.hasExplicitName = name != null; }
protected BnfiTermConstant(Type domainType) : base(GrammarHelper.TypeNameWithDeclaringTypes(domainType)) { this.domainType = domainType; this.AstConfig.NodeCreator = (context, parseTreeNode) => parseTreeNode.AstNode = parseTreeNode.Token.Value; }
protected Member(MemberInfo memberInfo, BnfTerm bnfTerm) : base(name: string.Format("{0}.{1}", GrammarHelper.TypeNameWithDeclaringTypes(memberInfo.DeclaringType), memberInfo.Name.ToLower())) { this.MemberInfo = memberInfo; this.BnfTerm = bnfTerm; }