/[bison]/bison/data/bison.simple
ViewVC logotype

Diff of /bison/data/bison.simple

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by eggert, Sat Apr 27 01:20:51 2002 UTC revision 1.17 by akim, Thu May 2 14:33:48 2002 UTC
# Line 20  m4_define([b4_uint_type], Line 20  m4_define([b4_uint_type],
20         [m4_fatal([no unsigned int type for $1])])])         [m4_fatal([no unsigned int type for $1])])])
21    
22    
23    # b4_lhs_value([TYPE])
24    # --------------------
25    # Expansion of $<TYPE>$.
26    m4_define([b4_lhs_value],
27    [yyval[]m4_ifval([$1], [.$1])])
28    
29    
30    # b4_rhs_value(RULE-LENGTH, NUM, [TYPE])
31    # --------------------------------------
32    # Expansion of $<TYPE>NUM, where the current rule has RULE-LENGTH
33    # symbols on RHS.
34    m4_define([b4_rhs_value],
35    [yyvsp@<:@m4_eval([$2 - $1])@:>@m4_ifval([$3], [.$3])])
36    
37    
38    # b4_lhs_location()
39    # -----------------
40    # Expansion of @$.
41    m4_define([b4_lhs_location],
42    [yyloc])
43    
44    
45    # b4_rhs_location(RULE-LENGTH, NUM)
46    # ---------------------------------
47    # Expansion of @NUM, where the current rule has RULE-LENGTH symbols
48    # on RHS.
49    m4_define([b4_rhs_location],
50    [yylsp@<:@m4_eval([$2 - $1])@:>@])
51    
52    
53  m4_define_default([b4_input_suffix], [.y])  m4_define_default([b4_input_suffix], [.y])
54    
55  m4_define_default([b4_output_parser_suffix],  m4_define_default([b4_output_parser_suffix],

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26