BNFC-2.9.4: A compiler front-end generator.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BNFC.Backend.Java.Utils

Synopsis

Documentation

comment :: String -> String Source #

Make a Java line comment

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.