public override ASTNode VisitInt([NotNull] CoolParser.IntContext context)
 {
     return(new IntegerNode(context.Start.Line, context.Start.Column)
     {
         Value = int.Parse(context.INT().GetText())
     });
 }
Example #2
0
 public override int VisitInt([NotNull] CoolParser.IntContext context)
 {
     return(int.Parse(context.INT().GetText()));
 }
Example #3
0
 public override ASTNode VisitInt([NotNull] CoolParser.IntContext context)
 {
     return(new IntNode(context, context.INT().GetText()));
 }
Example #4
0
 public override AST_Node VisitInt([NotNull] CoolParser.IntContext context)
 {
     return(new AST_Cte(context.INT(), new AST_Token(context.INT().GetText(), "Int")));
 }