Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 102 lines (59 sloc) 3.193 kb
a5d3cec Alan Zimmerman WIP. Aiming at getting parsing infrastructure in place, based on languag...
authored
1 Parser for JavaScript
cba395e Alan Zimmerman Ready to start with hjsmin integration.
authored
2 ---------------------
a5d3cec Alan Zimmerman WIP. Aiming at getting parsing infrastructure in place, based on languag...
authored
3
4 Based (loosely) on language-python
5
cba395e Alan Zimmerman Ready to start with hjsmin integration.
authored
6 How to build
7 ------------
8
9 Library:
10
11 cabal clean && cabal configure && cabal build
12
13 Tests:
14
15 cabal clean && cabal configure -fbuildtests && cabal build
16
17 Running the tests
18
19 ./dist/build/runtests/runtests
20
21
497d406 Alan Zimmerman Moving forward on hjsmin integration. Not done yet.
authored
22 To debug the grammar
23
6fec4b2 Alan Zimmerman Release 0.4.6.
authored
24 happy -iparse.txt -g -a -d src/Language/JavaScript/Parser/Grammar5.y
497d406 Alan Zimmerman Moving forward on hjsmin integration. Not done yet.
authored
25
26 This generates src/Language/JavaScript/Parser/Grammar.hs, delete this
27 when done with the debug version
28
29
6fec4b2 Alan Zimmerman Release 0.4.6.
authored
30 UTF8/Unicode version
d15dc6d Alan Zimmerman Time to find out a bit more about SrcLocation before carrying on with th...
authored
31
268a717 Alan Zimmerman Update cabal file and docs for Alex 3.0, giving out of the box unicode s...
authored
32 Alex 3.0 now supports unicode natively, and has been included as a
33 dependency in the cabal file.
d15dc6d Alan Zimmerman Time to find out a bit more about SrcLocation before carrying on with th...
authored
34
6cb1703 Alan Zimmerman Fixed greedy multiline comment bug, ready for 0.0.2
authored
35
36 Changes
646ff27 Alan Zimmerman 0.4.4 Allow unicode characters in comments
authored
37
59d46d5 Alan Zimmerman Preparing for 0.5.3
authored
38 0.5.3 Merge pull requests from @aszlig to add octal support, and to
39 allow leading zeros in exponents
40
41 0.5.2 Merged pull request from @markwright added some missing test
864e762 Alan Zimmerman Preparing for 0.5.2
authored
42 files to the cabal file.
43 Added runalex.sh and Lexer.x to the cabal file.
44
01fe149 Alan Zimmerman Preparing for 0.5.1
authored
45 0.5.1 Export CommentAnnotation(..). Simplify AST by getting rid of
46 JSFunctionBody, JSSourceElements, JSStatementBlock, JSStatementList.
47 They are replaced by JSBlock or a simple list.
48 Also fix lexer mode in presence of whitespace.
49 Changed way tests are invoked, to allow Travis integration.
2512179 Alan Zimmerman Cleaning up AST and grammar.
authored
50
7966005 Alan Zimmerman Preparing for release, bringing in the changes to master in the meantime...
authored
51 0.5.0 Rework AST to allow full round-trip parsing and output of
52 JavaScript. Breaks AST compatibility with prior versions
53
3a4d672 Alan Zimmerman 0.4.10 Moved Lexer.x into a separate directory, and made a script to
authored
54 0.4.10 Moved Lexer.x into a separate directory, and made a script to
55 call alex to generate Lexer.hs. This means alex is not required
56 at install time
57
bff786a Alan Zimmerman Version 0.4.9 Make alex and happy versions more explicit. Expose the Ale...
authored
58 0.4.9 Make alex and happy versions more explicit. Expose the AlexSpan
59 data type, so parse error positions can be reported.
60
8296513 Alan Zimmerman Close issue #5 by correcting the lexical analyser for DecimalLiteral. Ve...
authored
61 0.4.8 Close issue https://github.com/alanz/language-javascript/issues/5 by
62 correcting the lexical analyser for DecimalLiteral
63
d61a2f9 Alan Zimmerman Preparing for 0.4.7. Continue ECMASCRIPT update, remove incorrect
authored
64 0.4.7 Continue ECMASCRIPT update, remove incorrect future reserved words for
65 "code", "mode", "of", "one", "or" and "strict", put in by accident/stupidity.
66
6fec4b2 Alan Zimmerman Release 0.4.6.
authored
67 0.4.6 Update to ECMASCRIPT 5.1 by allowing continuations in string literals
68 Include build dependencies on alex >= 3.0 and happy.
69
268a717 Alan Zimmerman Update cabal file and docs for Alex 3.0, giving out of the box unicode s...
authored
70 0.4.5 Update cabal file and docs for Alex 3.0, giving out of the box unicode support
71
646ff27 Alan Zimmerman 0.4.4 Allow unicode characters in comments
authored
72 0.4.4 Allow unicode characters in comments
6cb1703 Alan Zimmerman Fixed greedy multiline comment bug, ready for 0.0.2
authored
73
cc32d8d Alan Zimmerman Version 0.4.3 Correct lexer for decimalToken, only leading digit needs t...
authored
74 0.4.3 correct lexer for decimalToken, only leading digit needs to be non-zero.
75
8e0f683 Alan Zimmerman Expose SrcSpan
authored
76 0.4.2 Expose SrcSpan
77
2ecca8c Alan Zimmerman 0.4.1 Expose AST.Node as well.
authored
78 0.4.1 Expose AST.Node as well.
79
1ffcdca Alan Zimmerman Preparing for 0.4.0. Updated JSNode to include location information, an...
authored
80 0.4.0 Updated JSNode to include location information, and made the parse more true to the original by leaving blocks as such, not replacing with ';'.
81
9a0a707 Alan Zimmerman Silly error in runtests.hs, importing wrong grammar. All tests now pass.
authored
82 0.3.0 ECMA-262 edition 5 compliance. Required adding JSFunctionExpression and JSPropertyAccessor to the AST.
5a2251a Alan Zimmerman Worked in Appendix A from ECMA-262 ed 5, into Grammar5.y. All tests bar...
authored
83
54f0c63 Alan Zimmerman Preparing 0.2.2
authored
84 0.2.2 Heading toward compliance with edition 5. Trailing commas allowed in array literals too.
85
4229c1b Alan Zimmerman Allow trailing comma in object literal
authored
86 0.2.1 Allow trailing comma in object literal
87
425aa61 Alan Zimmerman Initial fix for ECMAScript 3 allowing named function expressions.
authored
88 0.2.0 ECMAScript 3 allows function expressions to have names, AST.JSFunctionExpression now reflects this
89
90 0.1.0 Simplified AST by removing JSElement and JSElementList components
91
f4d4b37 Alan Zimmerman Preparing for 0.0.3
authored
92 0.0.3 Support for unicode in source. At the moment it only supports
93 UTF8 encoding, does not recognise byte order marks or UTF-16/UTF-32
94
6cb1703 Alan Zimmerman Fixed greedy multiline comment bug, ready for 0.0.2
authored
95 0.0.2 Multiline comments were processed in greedy form, now end of
96 comment recognised properly. Thanks to Tony Morris for reporting this.
97
98 0.0.1 Initial release
99
100 EOF
d15dc6d Alan Zimmerman Time to find out a bit more about SrcLocation before carrying on with th...
authored
101
Something went wrong with that request. Please try again.