Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 protected BnfiTermConstant(Type domainType)
     : base(GrammarHelper.TypeNameWithDeclaringTypes(domainType))
 {
     this.domainType            = domainType;
     this.AstConfig.NodeCreator = (context, parseTreeNode) => parseTreeNode.AstNode = parseTreeNode.Token.Value;
 }
Exemplo n.º 3
0
 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;
 }