language-javascript 0.4.4 → 0.4.5
raw patch · 4 files changed
+7/−16 lines, 4 files
Files
- README +4/−14
- dist/build/Language/JavaScript/Parser/Lexer.hs too large to diff
- language-javascript.cabal +2/−1
- src/Language/JavaScript/Parser/Lexer.x +1/−1
README view
@@ -21,8 +21,6 @@ To debug the grammar -happy -iparse.txt -g -a -d src/Language/JavaScript/Parser/Grammar.y-OR happy -iparse.txt -g -a -d src/Language/JavaScript/Parser/Grammar5.y This generates src/Language/JavaScript/Parser/Grammar.hs, delete this@@ -31,21 +29,13 @@ UTF8/Unicode version -This requires https://github.com/jyp/Alex, in particular the utf8-branch, to generate the Lexer.hs file+Alex 3.0 now supports unicode natively, and has been included as a+dependency in the cabal file. -$ git clone https://github.com/jyp/Alex.git-$ cd Alex-$ git checkout utf8-$ cabal install -This will put a utf8 enabled alex in ~/.cabal/bin--To switch back to the standard version, --$ cabal install --reinstall alex- Changes++0.4.5 Update cabal file and docs for Alex 3.0, giving out of the box unicode support 0.4.4 Allow unicode characters in comments
dist/build/Language/JavaScript/Parser/Lexer.hs view
file too large to diff
language-javascript.cabal view
@@ -1,5 +1,5 @@ Name: language-javascript-Version: 0.4.4+Version: 0.4.5 Synopsis: Parser for JavaScript Description: Parses Javascript into an Abstract Syntax Tree (AST). Initially intended as frontend to hjsmin. Homepage: https://github.com/alanz/language-javascript@@ -29,6 +29,7 @@ , mtl >= 1.1 && < 2.9 , containers >= 0.2 && < 0.5 , utf8-light >= 0.4 && < 1.0+ build-tools alex >= 3.0 hs-source-dirs: src Exposed-modules: Language.JavaScript.Parser Language.JavaScript.Parser.Parser
src/Language/JavaScript/Parser/Lexer.x view
@@ -359,7 +359,7 @@ --alexEOF = EOFToken alexSpanEmpty -ignorePendingBytes :: forall t t1 t2 t3. (t, t1, t2, t3) -> (t, t1, t3)+-- ignorePendingBytes :: forall t t1 t2 t3. (t, t1, t2, t3) -> (t, t1, t3) ignorePendingBytes (p,c,_ps,s) = (p,c,s)