aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index 6392c24..1b91498 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -10,6 +10,11 @@
#include "types.h"
enum {
+ /* The first four AST tokens are declarations. A declaration is any token T
+ for which ‘T <= _AST_DECLS_END’ holds. Declarations can also be made
+ public by using the ‘pub’ keyword, and you can tell if a declaration is
+ public by if the LSB is set. */
+
/* Variable declaration, lhs and rhs may be unused
‘x: lhs = rhs’ */
ASTDECL,