aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
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 */