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

BNFC.Backend.Java.CFtoJavaAbs15

Synopsis

Documentation

cf2JavaAbs Source #

Arguments

:: FilePath

Directory for AST without trailing pathSeparator.

-> String 
-> String 
-> CF 
-> RecordPositions 
-> [(FilePath, String)] 

The result is a list of files (without file extension) which must be written to disk. The tuple is (FileName, FileContents)

typename Source #

Arguments

:: String

Qualification (can be empty).

-> [UserDef]

User-defined token names.

-> String

Category name.

-> String 

This makes up for the fact that there's no typedef in Java.

cat2JavaType :: [UserDef] -> Cat -> String Source #

Print the Java type corresponding to a category.