bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH for Dlang support 2/2] d: doc: add D Action Features section


From: Adela Vais
Subject: [PATCH for Dlang support 2/2] d: doc: add D Action Features section
Date: Fri, 6 Nov 2020 17:18:05 +0200

* doc/bison.texi (D Action Features section): New.
---
 doc/bison.texi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/doc/bison.texi b/doc/bison.texi
index 829b0c46..46a7deb8 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -529,6 +529,7 @@ D Parsers
 * D Parser Interface::       Instantiating and running the parser
 * D Parser Context Interface:: Circumstances of a syntax error
 * D Scanner Interface::      Specifying the scanner for the parser
+* D Action Features::        Special features for use in actions
 
 Java Parsers
 
@@ -13790,6 +13791,7 @@ main (int argc, char *argv[])
 * D Parser Interface::       Instantiating and running the parser
 * D Parser Context Interface:: Circumstances of a syntax error
 * D Scanner Interface::      Specifying the scanner for the parser
+* D Action Features::        Special features for use in actions
 @end menu
 
 @node D Bison Interface
@@ -14024,6 +14026,30 @@ They should return new objects for each call, to avoid 
that all the symbol
 share the same Position boundaries.
 @end deftypemethod
 
+
+@node D Action Features
+@subsection Special Features for Use in D Actions
+
+Here is a table of Bison constructs, variables and functions that are useful in
+actions.
+
+@deffn {Variable} $$
+Acts like a variable that contains the semantic value for the
+grouping made by the current rule.  @xref{Actions}.
+@end deffn
+
+@deffn {Variable} $@var{n}
+Acts like a variable that contains the semantic value for the
+@var{n}th component of the current rule.  @xref{Actions}.
+@end deffn
+
+@deffn {function} yyerrok()
+Resume generating error messages immediately for subsequent syntax
+errors.  This is useful primarily in error rules.
+@xref{Error Recovery}.
+@end deffn
+
+
 @node Java Parsers
 @section Java Parsers
 
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]