aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-18 19:47:04 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-18 19:47:04 +0200
commitb17095a1262d2a8fa453ad70acab504bdddc4d6b (patch)
treeb21bdc146d244d455a59ef7d8bc1d8a5cedfab7b /src/parser.h
parent7c84f809ae7ef73d460bcd1daf3620540bf1380e (diff)
Big moves
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.h b/src/parser.h
index 5ecf8ef..fceedc0 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -22,10 +22,12 @@ enum {
‘(a: b, c: d) rhs’; aux[lhs].fnproto */
ASTFNPROTO,
- /* Function, lhs is the prototype and rhs is the body block */
+ /* Function
+ ‘(…)@lhs {…}@rhs’ */
ASTFN,
- /* Braced block, sublist[lhs…rhs] */
+ /* Braced block, an empty block has lhs = AST_EMPTY and rhs = 0
+ { stmt@lhs; …; stmt@rhs; } */
ASTBLK,
/* Identifier literal */