summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index a1b655f..7d9b347 100644
--- a/parser.h
+++ b/parser.h
@@ -77,5 +77,14 @@ typedef struct AST{
} AST;
+typedef enum Associativity{
+ AS_PREFIX,
+ AS_SUFFIX,
+ AS_LEFT,
+ AS_RIGHT,
+ AS_NONASSOC
+} Associativity;
+
+
ASTblock* parse(const char *source);
void ast_free(AST *ast);