예제 #1
0
 public Identifier(IdentifierToken token)
 {
     this.token = token;
 }
예제 #2
0
        private GurpsProperty getProperty(IdentifierToken token)
        {
            if (token.text == "level")
                if (enclosingProperty != null)
                    return enclosingProperty;

            if (nameToThing == null)
                throwNotAnIntError(token);
            try { return nameToThing[token.text]; }
            catch (KeyNotFoundException) { }

            throw token.parseThing.createError("name not defined '" + token.text + "'");
        }
예제 #3
0
 public void checkIsBoolean(IdentifierToken token)
 {
     if (token.text == "level")
         throwNotABooleanError(token);
     GurpsProperty property = getProperty(token);
     if (!(property is Advantage || property is AbstractSkill))
         throwNotABooleanError(token);
 }
예제 #4
0
 public void checkIsInt(IdentifierToken token)
 {
     GurpsProperty property = getProperty(token);
     if (!isInt(property))
         throwNotAnIntError(token);
 }
예제 #5
0
 public InheritedSkill(ParsedThing parsedThing, SkillDifficulty difficultyOverride, IdentifierToken parentSkillToken)
     : base(parsedThing)
 {
     this.difficultyOverride = difficultyOverride;
     this.parentSkillToken = parentSkillToken;
 }