Skip to content

Commit

Permalink
[C++] Replace %name-prefix with %define api.prefix
Browse files Browse the repository at this point in the history
`%name-prefix` has been deprecated in recent bison version (3.0?). The
correct way to set the prefix to the generated names seems to now be
`%define api.prefix`.

Fix #181
  • Loading branch information
gdetrez committed Aug 23, 2016
1 parent 2d41684 commit 026d0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/CPP/STL/CFtoBisonSTL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cf2Bison ln inPackage name cf env
= unlines
[header inPackage name cf,
render $ union inPackage (positionCats cf ++ allCats cf),
maybe "" (\ns -> "%name-prefix=\"" ++ ns ++ "yy\"") inPackage,
maybe "" (\ns -> "%define api.prefix {" ++ ns ++ "yy}") inPackage,
"%token _ERROR_",
tokens user env,
declarations cf,
Expand Down

0 comments on commit 026d0df

Please sign in to comment.