Пример #1
0
 public override void Visit(IntegerLiteralExpression node)
 {
     int value;
     if (!Int32.TryParse(node.Value, out value))
     {
         ReportError(
             ErrorTypes.TypeError,
             String.Format("Integer number {0} too large.",
             node.Value), node);
     }
     node.IntValue = value;
 }
Пример #2
0
 public override void Visit(IntegerLiteralExpression node)
 {
     HandleExpressionOrStatementNode(node);
 }