示例#1
0
        public AstTypeDefinitionTerm(Token termName, List<AstTypeDefinitionName> subTypeArgumentNames)
        {
            if (subTypeArgumentNames == null || subTypeArgumentNames.Count < 1) throw new ArgumentException("Invalid subtype arguments", "subTypeArgumentNames");
              if (termName == null) throw new ArgumentException("Invalid term name.", "termName");

              TermName = termName;
              SubTypeArgumentNames = subTypeArgumentNames;
        }
示例#2
0
 public AstTypeDefinitionNumber(Token number)
     : base(number)
 {
 }
示例#3
0
 public AstTypeDefinitionConstant(Token constName)
     : base(constName)
 {
 }
示例#4
0
 public AstTypeDefinitionAtom(Token sourceToken)
 {
     if (sourceToken == null) throw new ArgumentException("Invalid source token");
       SourceToken = sourceToken;
 }
示例#5
0
 public AstTypeDefinitionString(Token stringValue)
     : base(stringValue)
 {
 }
示例#6
0
文件: AstString.cs 项目: WCoetser/TRL
 public AstString(Token sourceToken)
 {
     StringContent = sourceToken;
 }
示例#7
0
 public AstVariable(Token variableToken)
 {
     VariableName = variableToken;
 }
示例#8
0
 public AstConstant(Token sourceToken)
 {
     AtomName = sourceToken;
 }
示例#9
0
 public AstTypeDefinitionName(Token termName)
 {
     TermName = termName;
 }
示例#10
0
 public AstTypeDefinitionVariable(Token variableName)
 {
     if (variableName == null) throw new ArgumentException("Variable name may not be empty.", "variableName");
       VariableName = variableName;
 }
示例#11
0
 public AstNativeKeyword(Token token)
 {
     Token = token;
 }
示例#12
0
文件: AstNumber.cs 项目: WCoetser/TRL
 public AstNumber(Token sourceToken)
 {
     Number = sourceToken;
 }