aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h3
1 files changed, 2 insertions, 1 deletions
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);