summaryrefslogtreecommitdiffstats
path: root/tcllib/modules/pt/include/modes.inc
diff options
context:
space:
mode:
Diffstat (limited to 'tcllib/modules/pt/include/modes.inc')
-rw-r--r--tcllib/modules/pt/include/modes.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/tcllib/modules/pt/include/modes.inc b/tcllib/modules/pt/include/modes.inc
new file mode 100644
index 0000000..4fce8d0
--- /dev/null
+++ b/tcllib/modules/pt/include/modes.inc
@@ -0,0 +1,21 @@
+[list_begin definitions][comment {-- modes --}]
+
+[def [const value]]
+
+The semantic value of the nonterminal symbol is an abstract syntax
+tree consisting of a single node node for the nonterminal itself,
+which has the ASTs of the symbol's right hand side as its children.
+
+[def [const leaf]]
+
+The semantic value of the nonterminal symbol is an abstract syntax
+tree consisting of a single node node for the nonterminal, without any
+children. Any ASTs generated by the symbol's right hand side are
+discarded.
+
+[def [const void]]
+
+The nonterminal has no semantic value. Any ASTs generated by the
+symbol's right hand side are discarded (as well).
+
+[list_end][comment {-- modes --}]