Skip to content

Commit

Permalink
[ #343 ] deprecate --bytestrings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Mar 3, 2021
1 parent c47fc6a commit 71ebcee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/src/BNFC/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ specificOptions =
-- "Use Alex 3 as Haskell lexer tool (default)"
-- , haskellTargets )
, ( Option [] ["bytestrings"] (NoArg (\o -> o { tokenText = ByteStringToken }))
"Use ByteString in Alex lexer"
"Use ByteString in Alex lexer [deprecated, use --text-token]"
, haskellTargets )
, ( Option [] ["text-token"] (NoArg (\o -> o { tokenText = TextToken }))
"Use Text in Alex lexer"
Expand Down Expand Up @@ -620,8 +620,8 @@ translateOldOptions = mapM $ \ o -> do
, ("-alex1" , "--alex1")
, ("-alex2" , "--alex2")
, ("-alex3" , "--alex3")
, ("-sharestrings" , "--sharestring")
, ("-bytestrings" , "--bytestring")
, ("-sharestrings" , "--sharestrings")
, ("-bytestrings" , "--bytestrings")
, ("-glr" , "--glr")
, ("-xml" , "--xml")
, ("-xmlt" , "--xmlt")
Expand Down

0 comments on commit 71ebcee

Please sign in to comment.