From 765c5cfe0eef8df2a1efcbb4f8fbeba59d1dac4b Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Sat, 10 Oct 2020 16:14:28 +0200 Subject: [PATCH] [ chatter ] updated some tool versions BNFC reports sometimes hints which tool to use to build the lexer / parser. Updated some version numbers it prints with them. --- source/src/BNFC/Backend/HaskellGADT.hs | 2 +- source/src/BNFC/Backend/Java.hs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/src/BNFC/Backend/HaskellGADT.hs b/source/src/BNFC/Backend/HaskellGADT.hs index 885f517f..d97596be 100644 --- a/source/src/BNFC/Backend/HaskellGADT.hs +++ b/source/src/BNFC/Backend/HaskellGADT.hs @@ -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) $ diff --git a/source/src/BNFC/Backend/Java.hs b/source/src/BNFC/Backend/Java.hs index 4bf746f6..1102b9d2 100644 --- a/source/src/BNFC/Backend/Java.hs +++ b/source/src/BNFC/Backend/Java.hs @@ -114,8 +114,8 @@ 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 @@ -123,8 +123,8 @@ makeJava' options@Options{..} cf = do 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 @@ -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 = [] @@ -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