diff options
author | Hans Bolinder <[email protected]> | 2013-08-28 08:07:51 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-08-28 08:07:51 +0200 |
commit | f597badb1e2336f921e8f1b1b8842f847f64fa94 (patch) | |
tree | 732135267384d4c9a5cf2b9f0abf68835d778f5a /lib/parsetools/src/yecc.erl | |
parent | 91a4675a234ecc6c675e4670a35863882a2d50c8 (diff) | |
parent | 682e562a20c2ab650a3a5e0f885af19bce0d5a14 (diff) | |
download | otp-f597badb1e2336f921e8f1b1b8842f847f64fa94.tar.gz otp-f597badb1e2336f921e8f1b1b8842f847f64fa94.tar.bz2 otp-f597badb1e2336f921e8f1b1b8842f847f64fa94.zip |
Merge branch 'maint'
* maint:
Fix a Yecc bug
Diffstat (limited to 'lib/parsetools/src/yecc.erl')
-rw-r--r-- | lib/parsetools/src/yecc.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/parsetools/src/yecc.erl b/lib/parsetools/src/yecc.erl index 53292b037a..f9207d926e 100644 --- a/lib/parsetools/src/yecc.erl +++ b/lib/parsetools/src/yecc.erl @@ -2106,8 +2106,8 @@ output_state_actions(St0, State, State, {Actions, Jump}, SI) -> output_state_actions(St, State, JState, _XActions, _SI) -> fwrite(St, <<"%% yeccpars2_~w: see yeccpars2_~w\n\n">>, [State, JState]). -output_state_actions1(St, State, [], _IsFirst, normal, _SI) -> - output_state_actions_fini(State, St); +output_state_actions1(St, State, [], IsFirst, normal, _SI) -> + output_state_actions_fini(State, IsFirst, St); output_state_actions1(St0, State, [], IsFirst, {to, ToS}, _SI) -> St = delim(St0, IsFirst), fwrite(St, @@ -2151,9 +2151,9 @@ output_call_to_includefile(NewState, St) -> fwrite(St, <<" yeccpars1(S, ~w, Ss, Stack, T, Ts, Tzr)">>, [NewState]). -output_state_actions_fini(State, St0) -> +output_state_actions_fini(State, IsFirst, St0) -> %% Backward compatible. - St10 = delim(St0, false), + St10 = delim(St0, IsFirst), St = fwrite(St10, <<"yeccpars2_~w(_, _, _, _, T, _, _) ->\n">>, [State]), fwrite(St, <<" yeccerror(T).\n\n">>, []). |