| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
BNFC.Backend.Java.CFtoJavaAbs15
Synopsis
- cf2JavaAbs :: FilePath -> String -> String -> CF -> RecordPositions -> [(FilePath, String)]
- typename :: String -> [UserDef] -> String -> String
- cat2JavaType :: [UserDef] -> Cat -> String
Documentation
Arguments
| :: FilePath | Directory for AST without trailing |
| -> 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)
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.