BNFC-2.9.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Java.Utils

Synopsis

Documentation

getRuleName :: String -> String Source #

Append an underscore if there is a clash with a java or ANTLR keyword. E.g. Grammar clashes with ANTLR keyword "grammar" since we sometimes need the upper and sometimes the lower case version of Grammar in the generated parser.

startSymbol :: String -> String Source #

Make a new entrypoint NT for an existing NT.