Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UTF-8 support from Jean-Philippe Bernardy and Alan Zimmerman.
Alex will now, by default, parse a UTF-8-encoded byte sequence. (to disable this behaviour, there is a new flag --latin1, which we will be using in GHC). Because parsing UTF-8 generates a large state machine, I added DFA minimisation (source file DFAMin.hs). This makes Alex itself somewhat slower, but the generated lexers are smaller - dramatically so for UTF-8 lexers.
- Loading branch information
Showing
26 changed files
with
1,889 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
*.hi | ||
*.prof | ||
*~ | ||
*.o | ||
*.info | ||
/AlexTemplate-debug.bak | ||
/AlexTemplate-ghc-debug.bak | ||
/AlexTemplate-ghc.bak | ||
/AlexTemplate.bak | ||
/AlexWrapper-basic-bytestring.bak | ||
/AlexWrapper-basic.bak | ||
/AlexWrapper-gscan.bak | ||
/AlexWrapper-monad-bytestring.bak | ||
/AlexWrapper-monad.bak | ||
/AlexWrapper-monadUserState-bytestring.bak | ||
/AlexWrapper-monadUserState.bak | ||
/AlexWrapper-posn-bytestring.bak | ||
/AlexWrapper-posn.bak | ||
/AlexWrapper-strict-bytestring.bak | ||
/AlexTemplate | ||
/AlexTemplate-debug | ||
/AlexTemplate-ghc | ||
/AlexTemplate-ghc-debug | ||
/AlexWrapper-basic | ||
/AlexWrapper-basic-bytestring | ||
/AlexWrapper-gscan | ||
/AlexWrapper-monad | ||
/AlexWrapper-monad-bytestring | ||
/AlexWrapper-monadUserState | ||
/AlexWrapper-monadUserState-bytestring | ||
/AlexWrapper-posn | ||
/AlexWrapper-posn-bytestring | ||
/AlexWrapper-strict-bytestring | ||
/dist | ||
/src/Data/Ranged/Boundaries.hs~ | ||
/src/Data/Ranged/RangedSet.hs~ | ||
/src/Data/Ranged/Ranges.hs~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Note: | ||
|
||
The contents of package Ranged-sets-0.3.0 has been copied into this | ||
package, in order to allow it to be part of the Haskell Platform, | ||
without introducing additional dependencies. | ||
|
||
The original license agreement has been included in the src/Data | ||
subdirectory, as required by the package source. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.