public override void CheckSemantics(TigerScope scope, Report report) { ContainingScope = scope; int val; if (!int.TryParse(Text, out val)) { report.AddError(SemanticErrors.InvalidIntegerConstant(this, Text)); } else { TigerType = TigerType.Int; Value = val; } }