Lines Matching full:printer
195 * Printer Decl:: Declaring how symbol values are displayed.
1947 You need to declare the lexical analyzer `yylex' and the error printer
3443 %printer { type1_print (yyoutput, $$); } <field1>
3448 %printer { type2_print (yyoutput, $$); } <field2>
4515 * Printer Decl:: Declaring how symbol values are displayed.
4758 File: bison.info, Node: Destructor Decl, Next: Printer Decl, Prev: Initial Action Decl, Up: Declarations
4879 File: bison.info, Node: Printer Decl, Next: Expect Decl, Prev: Destructor Decl, Up: Declarations
4889 The `%printer' directive defines code that is called when a symbol is
4893 -- Directive: %printer { CODE } SYMBOLS
4918 %printer { fprintf (yyoutput, "'%c'", $$); } <character>
4919 %printer { fprintf (yyoutput, "&%p", $$); } <*>
4920 %printer { fprintf (yyoutput, "\"%s\"", $$); } STRING1 string1
4921 %printer { fprintf (yyoutput, "<>"); } <>
4927 It performs only the second `%printer' in this case, so it prints only
4932 File: bison.info, Node: Expect Decl, Next: Start Decl, Prev: Printer Decl, Up: Declarations
8521 read, but not its semantic value. The `%printer' directive allows
8523 Values: Printer Decl. For backward compatibility, Yacc like C parsers
8527 As a demonstration of `%printer', consider the multi-function
8538 %printer { fprintf (yyoutput, "%s", $$->name); } VAR;
8539 %printer { fprintf (yyoutput, "%s()", $$->name); } FNCT;
8540 %printer { fprintf (yyoutput, "%g", $$); } <val>;
8549 The set of `%printer' directives demonstrates how to format the
8552 since `<val>' is the type for both `NUM' and `exp', this printer will
8577 formatted per our `%printer' specification: `sin()'. The parser stores
8592 The previous reduction demonstrates the `%printer' directive for
8668 Before `%printer' support, semantic values could be displayed using the
8677 For `yacc.c' only. Obsoleted by `%printer'.
9658 %printer { yyoutput << *$$; } "identifier"
9661 %printer { yyoutput << $$; } <ival>
9930 Java parsers do not support `%printer', as `toString()' can be used
10769 `%printer'.
10778 `%printer'.
11076 Obsoleted by `%printer'. *Note The `YYPRINT' Macro: The YYPRINT
12075 * %printer: Printer Decl. (line 6)
12112 * <*> <1>: Printer Decl. (line 6)
12116 * <> <2>: Printer Decl. (line 6)
12459 * printing semantic values: Printer Decl. (line 6)
12640 * yyoutput: Printer Decl. (line 16)
12747 Node: Printer Decl201012