aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2021-10-29 01:35:54 +0900
committerShinya Sato <shinnya.sato@gmail.com>2021-10-29 01:35:54 +0900
commitd28e80274828540a3278ef20c3250afb576773d4 (patch)
tree329944a21b8dc12653e2b3105fb8264df1fb3fad /src/ast.h
parent8b6cf5aa982859035c015c95f31e989add9af238 (diff)
downloadinpla-d28e80274828540a3278ef20c3250afb576773d4.tar.gz
inpla-d28e80274828540a3278ef20c3250afb576773d4.zip
v0.5.0
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast.h b/src/ast.h
index 0acc5bb..8bd667a 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -13,8 +13,8 @@ typedef enum {
// annotation
AST_ANNOTATION_L, AST_ANNOTATION_R,
- // builtin tuble
- AST_TUPLE,
+ // builtin tuple
+ AST_TUPLE, AST_PPAIR,
// operation
AST_INT, AST_LD, AST_PLUS, AST_SUB, AST_MUL, AST_DIV, AST_MOD,
@@ -50,7 +50,7 @@ void puts_ast(Ast *p);
Ast *ast_paramToCons(Ast *ast);
void ast_recordConst(char *name, int val);
Ast *ast_remove_tuple1(Ast *p);
-
+Ast *ast_unfoldABR(Ast *left, char *sym, Ast *paramlist);
#define ast_makeCons(x1,x2) ast_makeAST(AST_LIST,x1,x2)
#define ast_makeList1(x1) ast_makeAST(AST_LIST,x1,NULL)