diff options
author | Hans Bolinder <[email protected]> | 2013-08-28 08:05:12 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-08-28 08:05:12 +0200 |
commit | 682e562a20c2ab650a3a5e0f885af19bce0d5a14 (patch) | |
tree | 9a8b2bbf9f0cbf6f6c23d755d3bc72e463a575d4 /lib/parsetools/src/yecc.erl | |
parent | e2c0f6dd1fc9b6bd506a481644b9c63f9d575aa1 (diff) | |
parent | 63f418886743517b426920590fb09d6c4f1eb8c7 (diff) | |
download | otp-682e562a20c2ab650a3a5e0f885af19bce0d5a14.tar.gz otp-682e562a20c2ab650a3a5e0f885af19bce0d5a14.tar.bz2 otp-682e562a20c2ab650a3a5e0f885af19bce0d5a14.zip |
Merge branch 'hb/parsetools/fix_yecc_bug/OTP-11269' into maint
* hb/parsetools/fix_yecc_bug/OTP-11269:
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">>, []). |