[commit: ghc] master: Refactor extension-bitmap in Lexer (b80d573)
git at git.haskell.org
git at git.haskell.org
Fri Jun 27 12:33:57 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b80d5739361b5879a25de8497ae08dd0bfdbf627/ghc
>---------------------------------------------------------------
commit b80d5739361b5879a25de8497ae08dd0bfdbf627
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sat Jun 21 17:04:32 2014 +0200
Refactor extension-bitmap in Lexer
This introduces an Enum type `ExtBits` for the currently used 32 flags
and introduces a type-synonym `ExtsBitmap` for representing a set over
`ExtBits`. While at it, the current `Int` was replaced by `Word` to
have the compiler catch any missed use-sites.
This will make it easy to swap the `Word`-representation of `ExtsBitmap`
by something different, such as e.g. a `Word64`
Test Plan: successful validate
Differential Revision: https://phabricator.haskell.org/D23
>---------------------------------------------------------------
b80d5739361b5879a25de8497ae08dd0bfdbf627
compiler/parser/Lexer.x | 369 +++++++++++++++++++++++-------------------------
1 file changed, 173 insertions(+), 196 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc b80d5739361b5879a25de8497ae08dd0bfdbf627
More information about the ghc-commits
mailing list