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 + "'");
}