From 15fb03902ff5550b3a8c44bde3e08df876449f7a Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 18 Aug 2016 22:05:21 +0200 Subject: Third --- ast.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 46c4b49..f55d798 100644 --- a/ast.h +++ b/ast.h @@ -1,10 +1,13 @@ #pragma once +#include + typedef enum ASTtype{ AST_LIST, AST_WORD, AST_NUMBER, + AST_STRING, AST_SYMBOL, } ASTtype; @@ -14,6 +17,7 @@ typedef struct AST AST; typedef struct ASTlist{ int len; AST **nodes; + bool quoted; } ASTlist; typedef struct ASTword{ @@ -24,6 +28,11 @@ typedef struct ASTnumber{ double num; } ASTnumber; +typedef struct ASTstring{ + char *str; + int len; +} ASTstring; + typedef struct ASTsymbol{ char *name; int symid; @@ -38,6 +47,7 @@ struct AST{ ASTlist l; ASTword w; ASTnumber n; + ASTstring S; ASTsymbol s; }; }; -- cgit v1.2.3-70-g09d2