aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-19 20:19:16 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-19 20:19:16 +0200
commit8eb27d1c5ea9463fae0fca3fd8829a851d36d18a (patch)
tree940bc961d918a40e607cd20770ea02f4415d6487 /src
parentcb358312c86c6fe13631fb4022cefccee8bba91e (diff)
Add a comment
Diffstat (limited to 'src')
-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,