We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c316cc commit 8a7331fCopy full SHA for 8a7331f
packages/backend-lalr/src/Happy/Backend/LALR/ProduceCode.lhs
@@ -610,9 +610,10 @@ machinery to discard states in the parser...
610
% f (Prelude.True, nr) = [token_strs Prelude.!! nr]
611
612
> produceExpListPerState
613
-> = renderDocDecs (runIdentity $ evalStateT (produceExpListArray @DocExp) Map.empty)
614
-> . str "{-# NOINLINE happyExpListPerState #-}\n"
615
-> . renderDocDecs [[happy_exp_list_per_state_dec]]
+> =
+> (renderDocDecs $
+> (runIdentity $ evalStateT (produceExpListArray @DocExp) Map.empty)
616
+> ++ [[noInlinePragmaD happy_exp_list_per_state_name, happy_exp_list_per_state_dec]])
617
> . nl
618
> where (first_token, last_token) = bounds token_names'
619
> nr_tokens = last_token - first_token + 1
0 commit comments