From 8c7809d024e85d0a8acfb794a4db41b0e4bc13e6 Mon Sep 17 00:00:00 2001 From: Shinya Sato Date: Mon, 2 May 2022 09:49:01 +0900 Subject: v0.8.2-1 --- src/ast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index 5d759fa..97cb9d7 100644 --- a/src/ast.h +++ b/src/ast.h @@ -34,6 +34,7 @@ typedef enum { typedef struct abstract_syntax_tree { AST_ID id; int intval; + long longval; char *sym; struct abstract_syntax_tree *left,*right; } Ast; @@ -41,7 +42,7 @@ typedef struct abstract_syntax_tree { void ast_heapInit(void); void ast_heapReInit(void); Ast *ast_makeSymbol(char *name); -Ast *ast_makeInt(int num); +Ast *ast_makeInt(long num); Ast *ast_makeAST(AST_ID id, Ast *left, Ast *right); Ast *ast_makeTuple(Ast *tuple); Ast *ast_addLast(Ast *l, Ast *p); -- cgit v1.2.3