alex 3.0.4 → 3.0.5
raw patch · 3 files changed
+6/−3 lines, 3 files
Files
- alex.cabal +1/−1
- templates/wrappers.hs +2/−2
- tests/tokens.x +3/−0
alex.cabal view
@@ -1,5 +1,5 @@ name: alex-version: 3.0.4+version: 3.0.5 license: BSD3 license-file: LICENSE copyright: (c) Chis Dornan, Simon Marlow
templates/wrappers.hs view
@@ -325,8 +325,8 @@ #ifdef ALEX_BASIC type AlexInput = (Char,[Byte],String) --alexInputPrevChar (c,_) = c+alexInputPrevChar :: AlexInput -> Char+alexInputPrevChar (c,_,_) = c -- alexScanTokens :: String -> [token] alexScanTokens str = go ('\n',[],str)
tests/tokens.x view
@@ -18,6 +18,9 @@ [\=\+\-\*\/\(\)] { \s -> Sym (head s) } $alpha [$alpha $digit \_ \']* { \s -> Var s } + -- a left-context pattern for testing+ ^ \# ;+ { -- Each right-hand side has type :: String -> Token