Skip to content

Commit

Permalink
[ chatter ] updated some tool versions
Browse files Browse the repository at this point in the history
BNFC reports sometimes hints which tool to use to build the lexer /
parser.  Updated some version numbers it prints with them.
  • Loading branch information
andreasabel committed Oct 10, 2020
1 parent 92a1c17 commit 765c5cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/HaskellGADT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ makeHaskellGadt opts cf = do
liftIO $ putStrLn " (Use Alex 3 to compile.)"
mkfile (happyFile opts) $
cf2Happy parMod absMod lexMod (glr opts) (tokenText opts) False cf
liftIO $ putStrLn " (Tested with Happy 1.15)"
liftIO $ putStrLn " (Tested with Happy 1.15 - 1.20)"
mkfile (templateFile opts) $ cf2Template (templateFileM opts) absMod cf
mkfile (printerFile opts) $ cf2Printer StringToken False True prMod absMod cf
when (hasLayout cf) $ mkfile (layoutFile opts) $
Expand Down
12 changes: 6 additions & 6 deletions source/src/BNFC/Backend/Java.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ makeJava' options@Options{..} cf = do
let (lex, env) = lexfun packageBase cf
-- Where the lexer file is created. lex is the content!
mkfile (dirBase ++ inputfile lexmake ) lex
liftIO $ putStrLn $ " (Tested with "+++ toolname lexmake
+++ toolversion lexmake +++")"
liftIO $ putStrLn $ " (Tested with" +++ toolname lexmake
+++ toolversion lexmake ++ ")"
-- where the parser file is created.
mkfile (dirBase ++ inputfile parmake)
$ parsefun packageBase packageAbsyn cf rp env
liftIO $ putStrLn $
if supportsEntryPoints parmake
then "(Parser created for all categories)"
else " (Parser created only for category " ++ show (firstEntry cf) ++ ")"
liftIO $ putStrLn $ " (Tested with " +++ toolname parmake
+++ toolversion parmake +++ ")"
liftIO $ putStrLn $ " (Tested with" +++ toolname parmake
+++ toolversion parmake ++ ")"
Makefile.mkMakefile options $
makefile dirBase dirAbsyn absynFileNames parselexspec
where
Expand Down Expand Up @@ -460,7 +460,7 @@ jlexmakedetails = MakeDetails
, filename = "Yylex"
, fileextension = ""
, toolname = "JLex"
, toolversion = "1.2.6."
, toolversion = "1.2.6"
, supportsEntryPoints = False
, results = ["Yylex"]
, other_results = []
Expand All @@ -470,7 +470,7 @@ jlexmakedetails = MakeDetails
jflexmakedetails = jlexmakedetails
{ executable = "jflex"
, toolname = "JFlex"
, toolversion = "1.4.3"
, toolversion = "1.4.3 - 1.7.0"
}

cupmakedetails rp = MakeDetails
Expand Down

0 comments on commit 765c5cf

Please sign in to comment.