Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
433 commits
Select commit Hold shift + click to select a range
0cbc3f2
XRegExp API change: `isUnicodeSlug` --> `_getUnicodeProperty` (see al…
GerHobbelt Aug 16, 2016
4ad9ea1
regenerated library files
GerHobbelt Aug 16, 2016
d77b6da
bumped build version and regenerated library files
GerHobbelt Aug 17, 2016
cd893fc
regenerate lib files
GerHobbelt Aug 17, 2016
cfe56f6
improve error report on hitting an unknown/unsupported input characte…
GerHobbelt Aug 25, 2016
9320d0e
- using the new APIs from jison-lex to help improve the error output,…
GerHobbelt Sep 9, 2016
0501c65
updated packages; regenerated library files
GerHobbelt Sep 9, 2016
fb5839d
ignore MAC/OSX cruft and copy/paste Travis CI YAML spec file to all s…
GerHobbelt Sep 9, 2016
d3a697a
bumped build revision
GerHobbelt Sep 9, 2016
5c6e620
fixed travis CI YAML spec for submodules
GerHobbelt Sep 9, 2016
0ac5951
bumped revision number
GerHobbelt Sep 10, 2016
cef08f0
point jison npm dependencies inside submodules to our travis-ci branc…
GerHobbelt Sep 10, 2016
9032876
revert the submodule hacking for travisCI
GerHobbelt Sep 10, 2016
189d778
debug issue on Linux: one of the ebnf tests barfs :-S
GerHobbelt Sep 10, 2016
db2e45b
debugging...
GerHobbelt Sep 10, 2016
87afdae
- fix lexer: try/catch in easy-keyword-rule handling was too lenient …
GerHobbelt Sep 11, 2016
ec57904
regenerated library files
GerHobbelt Sep 11, 2016
c6ac818
bumped build revision and regenerated library files
GerHobbelt Sep 15, 2016
6cfcf73
rebuild
GerHobbelt Sep 15, 2016
2dacfe3
rebuild
GerHobbelt Sep 15, 2016
d0c541b
rebuild
GerHobbelt Sep 15, 2016
ec872a9
bump build revision number
GerHobbelt Sep 15, 2016
860b964
bumped build version
GerHobbelt Sep 15, 2016
bd3011d
rebuild lib
GerHobbelt Sep 18, 2016
ed6ffa8
bumped build revision
GerHobbelt Sep 18, 2016
3fc8224
rebuild lib
GerHobbelt Sep 18, 2016
bd34266
bumped build revision
GerHobbelt Sep 18, 2016
549d84e
bumped build revision
GerHobbelt Sep 18, 2016
176467e
rebuild lib
GerHobbelt Sep 18, 2016
2700393
bumped build revision
GerHobbelt Sep 18, 2016
6489f7c
rebuild lib
GerHobbelt Sep 18, 2016
d9d5e5b
rebuild lib
GerHobbelt Sep 18, 2016
86f2be0
rebuild lib
GerHobbelt Sep 18, 2016
a949685
bumped build revision
GerHobbelt Sep 18, 2016
ec61935
rebuild lib
GerHobbelt Sep 19, 2016
04d4ec0
bumped build revision
GerHobbelt Sep 19, 2016
78aa571
Fix repository field in package.json
shanavas786 Oct 28, 2016
bbbf9d9
fix package.json repository url
pravi Oct 29, 2016
aaf6a25
regenerated library
GerHobbelt Nov 9, 2016
7c5d8b0
Merge remote-tracking branch 'remotes/shanavas786/fix-package-json'
GerHobbelt Nov 9, 2016
1bc0c02
Merge remote-tracking branch 'remotes/pravi/patch-1'
GerHobbelt Nov 9, 2016
dc6d365
added `%options XregExp` to include full support for Unicode regexes …
GerHobbelt Nov 11, 2016
e02adfd
regenerated library
GerHobbelt Nov 11, 2016
42cedac
regenerated library + bumped build revision
GerHobbelt Nov 14, 2016
a828f9e
regenerated library files
GerHobbelt Nov 14, 2016
0919f9c
bump revision & regenerate library files
GerHobbelt Nov 14, 2016
621216b
regenerated library
GerHobbelt Nov 17, 2016
23ec008
regenerated library files
GerHobbelt Nov 17, 2016
9cc6a83
bump revision & regenerated library files
GerHobbelt Nov 17, 2016
b297ffb
regenerated library files
GerHobbelt Nov 17, 2016
1e9d0b4
bump build revision & rebuild
GerHobbelt Nov 17, 2016
54f50b9
Merge remote-tracking branch 'remotes/Moykn/master'
GerHobbelt Nov 17, 2016
5582424
Merge branch 'master' into bison-bundled-conditional-lex-rules
GerHobbelt Nov 17, 2016
749d5a8
BUGFIX: error reporting code for illegal lexer input was b0rked, usin…
GerHobbelt Nov 17, 2016
9632888
typo fix in comment
GerHobbelt Nov 17, 2016
140c183
refactored/simplified the lexer grammar spec a bit; the old comment a…
GerHobbelt Nov 17, 2016
2b26d62
bumped build revision
GerHobbelt Nov 18, 2016
7e405c8
rebuild library files
GerHobbelt Nov 18, 2016
19f7961
augmented the comment for one of the lexer rules to better explain *w…
GerHobbelt Nov 18, 2016
3df8602
bumped build revision
GerHobbelt Nov 18, 2016
9707b65
rebuild library files
GerHobbelt Nov 19, 2016
ec856a0
rebuild library files
GerHobbelt Dec 3, 2016
3a7aa53
`yytext.length` --> `yyleng`
GerHobbelt Dec 15, 2016
7774a05
- unified lexers `bnf.l`, `ebnf.y` and `lex-parser/lex.l`
GerHobbelt Dec 15, 2016
69b24ab
bumped revision and rebuilt
GerHobbelt Dec 15, 2016
8b8570b
bumped build revision
GerHobbelt Dec 15, 2016
fbb3cfd
updated npm packages, tagged and bumped build revision and rebuilt
GerHobbelt Dec 15, 2016
f89d1d5
Build with strict-mode-compliant Jison
dfreeman Dec 20, 2016
47f9184
Support no-rule lex definitions
dfreeman Jan 17, 2017
f9bc649
Build with no-rules branch
dfreeman Jan 17, 2017
0218438
Version tag to make Yarn pickier
dfreeman Jan 17, 2017
eb15cf1
bump build revision
GerHobbelt Jan 25, 2017
5c56c25
re-tagged and bumped build revision again after mismanagement of buil…
GerHobbelt Jan 25, 2017
92e2c13
bumped build number
GerHobbelt Jan 28, 2017
1af9bf3
rebuilt library files
GerHobbelt Jan 30, 2017
920729b
bumped build revision
GerHobbelt Jan 30, 2017
0c8a8d6
bumped build revision
GerHobbelt Jan 30, 2017
d551b33
fix SHA-1: 1af9bf33f050c85e107313b8f04f7382aff4860d * rebuilt library…
GerHobbelt Jan 31, 2017
c666ba9
npm: use the new name `jison-gho`; bump build number
GerHobbelt Jan 31, 2017
25fac63
rebuilt library files
GerHobbelt Jan 31, 2017
dad6665
bumped build revision
GerHobbelt Jan 31, 2017
892e53c
rebuilt library files
GerHobbelt Jan 31, 2017
d653d37
Merge remote-tracking branch 'remotes/dfreeman/dist'
GerHobbelt Jan 31, 2017
0688506
- augment the jison parser and lexer to collect unknown `%xyz` declar…
GerHobbelt Jan 31, 2017
89bf2a7
sync TravisCI and npm package ignore settings
GerHobbelt Feb 1, 2017
9f90434
cherrypicked from ebnf-parser: config fix to make TravisCI deliver!
GerHobbelt Feb 1, 2017
b50973f
fix for TravisCI-found bug: NodeJS 5.x would fail the test suite as t…
GerHobbelt Feb 1, 2017
2be4334
rebuilt library files
GerHobbelt Feb 1, 2017
cdad52a
update all TravisCI build badges in the README's
GerHobbelt Feb 1, 2017
21d9fe6
rebuilt library files
GerHobbelt Feb 1, 2017
884b49d
rebuilt library files
GerHobbelt Feb 1, 2017
e210361
bumped build revision
GerHobbelt Feb 1, 2017
2b3dd3d
rebuilt library files
GerHobbelt Feb 1, 2017
42b3825
Merge branch 'master' into bison-bundled-conditional-lex-rules
GerHobbelt Feb 2, 2017
7f7e848
correct fix instead of the quick hack commit SHA-1: b50973f17de7e6fb9…
GerHobbelt Feb 2, 2017
43eaba7
Merge branch 'master' into bison-bundled-conditional-lex-rules
GerHobbelt Feb 2, 2017
6766ca9
cosmetic fix: make sure all epsilon rules are easily recognized as su…
GerHobbelt Feb 2, 2017
671c003
Merge branch 'master' into bison-bundled-conditional-lex-rules
GerHobbelt Feb 2, 2017
06cfb33
cleanup the lexer rules regarding literal lexer rule elements recogni…
GerHobbelt Feb 2, 2017
6d91e2b
fix failing jison system test, following the preliminary grouped lexe…
GerHobbelt Feb 2, 2017
a24fb31
make the lexer parser action code a bit more legible. This also makes…
GerHobbelt Feb 2, 2017
c64c9ee
rebuild library files.
GerHobbelt Feb 2, 2017
da528cf
synced README with latest lexer spec
GerHobbelt Feb 19, 2017
850ba18
migrated all tests to mocha+chai (in-browser test mode via tests/inde…
GerHobbelt Feb 19, 2017
4e58573
regenerated library files
GerHobbelt Feb 19, 2017
d1f7ec6
feature: allow `%options` to spread across multiple lines, as long as…
GerHobbelt Feb 20, 2017
6ef5ec4
synced similar code with ebnf-parser: fixed bug lurking in the lexer …
GerHobbelt Feb 20, 2017
66e1859
rebuilt library files
GerHobbelt Feb 20, 2017
6ae2a5e
bumped build revision
GerHobbelt Feb 20, 2017
90206f0
rebuilt library files
GerHobbelt Feb 20, 2017
7e99a43
rebuilt library files
GerHobbelt Feb 21, 2017
65a5749
bumped build revision
GerHobbelt Feb 21, 2017
84f6664
rebuilt library files
GerHobbelt Feb 21, 2017
fa0f9f2
bumped build revision
GerHobbelt Mar 4, 2017
52513ff
rebuilt library files
GerHobbelt Mar 4, 2017
d6929a1
rebuilt library files
GerHobbelt Mar 8, 2017
3335cbe
bumped build revision
GerHobbelt Mar 8, 2017
d2028ee
rebuilt library files
GerHobbelt Mar 8, 2017
5c01595
* refactor: instead of cutting up strings, use the built-in lexer fea…
GerHobbelt Mar 26, 2017
fc7512c
regenerated library files
GerHobbelt Mar 26, 2017
f0ca4e0
rebuilt library files
GerHobbelt Mar 26, 2017
f629742
bumped build revision
GerHobbelt Mar 26, 2017
ad3f597
rebuilt library files
GerHobbelt Mar 26, 2017
d9ed831
no need to run `npm install --only-dev` any more; this was a quick ha…
GerHobbelt Apr 8, 2017
0626af0
a bit of run-time optimization: invariant code motion
GerHobbelt Apr 8, 2017
53fe416
rebuilt library files
GerHobbelt Apr 8, 2017
581269b
fix https://github.com/zaach/ebnf-parser/issues/9
GerHobbelt Apr 9, 2017
64953c3
rebuilt library files
GerHobbelt Apr 9, 2017
50c6d23
rebuilt library files
GerHobbelt Apr 9, 2017
72dd684
bumped build revision
GerHobbelt Apr 9, 2017
4ef8fc7
rebuilt library files
GerHobbelt Apr 9, 2017
75a99bd
rebuilt library files
GerHobbelt Apr 9, 2017
f41fa10
bumped build revision
GerHobbelt Apr 9, 2017
5a70191
rebuilt library files
GerHobbelt Apr 9, 2017
a77f746
bump version
GerHobbelt Apr 15, 2017
d1f2e98
updated NPM packages
GerHobbelt Jun 25, 2017
61b8f1b
regenerated library files
GerHobbelt Jun 25, 2017
1a5331e
updated NPM packages and regenerated library files
GerHobbelt Jul 23, 2017
eab8717
improved error analysis and reporting for many common coding mistakes…
GerHobbelt Jul 31, 2017
1311bf9
improve error analysis/diagnosis by extended error from the lexer: se…
GerHobbelt Jul 31, 2017
f46d168
regenerated library files
GerHobbelt Jul 31, 2017
4a05ec2
bumped build revision
GerHobbelt Jul 31, 2017
b2f896f
rebuilt library files
GerHobbelt Jul 31, 2017
f4ecfb3
rebuilt library files
GerHobbelt Jul 31, 2017
faca425
bumped build revision
GerHobbelt Jul 31, 2017
5099fa7
updated NPM packages
GerHobbelt Jul 31, 2017
67690a8
rebuilt library files
GerHobbelt Jul 31, 2017
0071bd3
update the git tag&bump shell script to fix the issue of losing the p…
GerHobbelt Jul 31, 2017
92071a9
rebuilt library files
GerHobbelt Jul 31, 2017
61cfbb7
bumped build revision
GerHobbelt Jul 31, 2017
5bdfe49
updated NPM packages
GerHobbelt Jul 31, 2017
95da530
update TravisCI config to support NodeJS 4-8 and don't use deprecated…
GerHobbelt Jul 31, 2017
8962f32
updated NPM packages; point jison-gho to the NPM repo
GerHobbelt Aug 20, 2017
a228969
- fix corrupted console output/reports due to printf-style behaviour …
GerHobbelt Aug 20, 2017
dffcc4d
- silence the warn/log output of the tests' internals (unless you set…
GerHobbelt Aug 20, 2017
2122c8b
use the devDependency jison-gho as a fallback: when we're developing,…
GerHobbelt Aug 20, 2017
0c544b9
cleanup tests: use beforeEach to set up each test
GerHobbelt Aug 20, 2017
eb02fb8
bump build revision and rebuild the lexer unconditionally: there's to…
GerHobbelt Aug 20, 2017
ca8c6cb
- updated `make clean` target to get rid of the package lock file pro…
GerHobbelt Aug 20, 2017
5d5a003
regenerated library files following jison commit https://github.com/G…
GerHobbelt Aug 20, 2017
6937505
regenerated library files after jison update
GerHobbelt Aug 21, 2017
16e3edc
- cleanup: `popState()` API does not accept an argument.
GerHobbelt Aug 21, 2017
49188be
fix crash when parsing lexer condition groups (which are otherwise st…
GerHobbelt Aug 21, 2017
7066542
updated the package version to 0.6.0-<build> to mirror the jison vers…
GerHobbelt Aug 26, 2017
aa97526
cleaned up the lexer/parser string handling.
GerHobbelt Aug 26, 2017
1d160f7
Added error recovery/diagnostic rules to help error reporting. Largel…
GerHobbelt Aug 26, 2017
a644412
regenerated library files
GerHobbelt Aug 26, 2017
79fdf41
fix/cleanup: strings anywhere in the lexer spec are now properly unes…
GerHobbelt Aug 27, 2017
eaf0eee
grammar cleanup
GerHobbelt Aug 27, 2017
de43013
working on a better error report: display the offending lines of inpu…
GerHobbelt Aug 27, 2017
d922a83
moving towards public 'scoped package' releases as per https://docs.n…
GerHobbelt Aug 27, 2017
508d51f
rebuilt library files: moving towards public 'scoped package' release…
GerHobbelt Aug 27, 2017
5a8da7b
add `npm run pub` task to help moving towards public 'scoped package'…
GerHobbelt Aug 27, 2017
db9ce48
added `make publish' target to publish all jison modules to NPM at once.
GerHobbelt Aug 27, 2017
faa5261
bumped build revision
GerHobbelt Aug 27, 2017
32d4e0b
fixed detection of proper working JISON in a full development environ…
GerHobbelt Aug 27, 2017
e00b036
added `make npm-update` target to run the npmu/ncu npm utility across…
GerHobbelt Aug 27, 2017
a12282f
fix SHA-1: 32d4e0bb57e828f38d90aa1314f325d5d43ce4d8 :: fixed detectio…
GerHobbelt Aug 27, 2017
baa2006
`make superclean && make prep && make && make site` executed without …
GerHobbelt Aug 27, 2017
a25a511
bumped build revision before we produce another release.
GerHobbelt Aug 27, 2017
c82fa91
rebuilt library files
GerHobbelt Aug 27, 2017
1ecc5e9
bumped build revision
GerHobbelt Aug 27, 2017
cb23581
updated NPM packages
GerHobbelt Aug 27, 2017
21ec2e6
fixes for location tracking bugs introduced/released in build 188; ma…
GerHobbelt Aug 31, 2017
79fac41
more error reporting detail for lex grammar coding mistakes by the user.
GerHobbelt Aug 31, 2017
f279006
first part of fixing https://github.com/GerHobbelt/jison/issues/13; a…
GerHobbelt Aug 31, 2017
9904d3a
correcting the typo b0rkb0rkb0rk which is mentioned in the example fo…
GerHobbelt Aug 31, 2017
ba20c96
locking down intermediate development stage
GerHobbelt Sep 1, 2017
a64c580
updated NPM packages
GerHobbelt Sep 4, 2017
9e123d4
- only output debug pre/post lexing info when yydebug is set.
GerHobbelt Sep 5, 2017
34fe95e
rebuilt library files
GerHobbelt Sep 6, 2017
f903f09
- bumped build revision
GerHobbelt Sep 11, 2017
9097314
- fix error where `%include` statement would follow a comment in an o…
GerHobbelt Sep 11, 2017
dfae7fc
regenerated library files using the latest jison
GerHobbelt Sep 11, 2017
3b641b7
remove temporary debugging code.
GerHobbelt Sep 11, 2017
0539616
regenerated library files using bleeding edge jison
GerHobbelt Sep 11, 2017
9deea01
migrating the very useful `prettyPrintRange` to becoming a lexer API
GerHobbelt Sep 11, 2017
aaa6716
migrating the very useful `prettyPrintRange` to becoming a lexer API:…
GerHobbelt Sep 11, 2017
db3fd93
jison having modules is still a bloody nuisance when you introduce fe…
GerHobbelt Sep 12, 2017
b36edea
bumped build revision
GerHobbelt Sep 12, 2017
daa027e
updated NPM packages
GerHobbelt Sep 12, 2017
c1b878e
bumped build revision
GerHobbelt Sep 12, 2017
f8bb2d4
updated NPM packages
GerHobbelt Sep 12, 2017
816693e
rebuilt library files
GerHobbelt Sep 17, 2017
7fa3cbb
rebuilt library files
GerHobbelt Sep 24, 2017
4c40e9f
updated NPM packages
GerHobbelt Sep 24, 2017
857527b
bumped build revision
GerHobbelt Sep 24, 2017
4baa018
updated NPM packages
GerHobbelt Sep 24, 2017
c6a3ca6
rebuilt library files
GerHobbelt Sep 24, 2017
05d4451
updated NPM packages
GerHobbelt Sep 24, 2017
5bce2fe
bumped build revision
GerHobbelt Sep 24, 2017
8808b77
updated NPM packages
GerHobbelt Sep 24, 2017
f376ed4
corrected the copyright in the license files (now correctly attributi…
GerHobbelt Sep 29, 2017
40b9e1d
code refactoring: migrate to using the common library json-helpers-lib
GerHobbelt Sep 29, 2017
a4596a7
regenerated library files
GerHobbelt Sep 29, 2017
23bc498
- tightening the test rig: it turns out you must spec `--check-leaks`…
GerHobbelt Sep 29, 2017
840364b
moved the `dquote()` function to the jison-helpers-lib module as it's…
GerHobbelt Oct 3, 2017
ff3149f
updated NPM packages
GerHobbelt Oct 3, 2017
bd457ab
fix bug: `warn()` and `log()` APIs are from `yyparser`, **NOT** from …
GerHobbelt Oct 12, 2017
833ee60
updated NPM packages and added rollup+babel dev deps for move towards…
GerHobbelt Oct 12, 2017
8271fdd
security fix: use safe `JSON.parse()` instead of unsafe `eval()` to c…
GerHobbelt Oct 12, 2017
073cda1
using rollup+babel to move towards using a ES2015 codebase for the le…
GerHobbelt Oct 12, 2017
9825902
kill scratch files in the build process and include the ES5, etc. gen…
GerHobbelt Oct 12, 2017
04c0513
`make clean` should also nuke the dist directory; rebuilt library files
GerHobbelt Oct 12, 2017
453d898
tweak export style to suit JISON
GerHobbelt Oct 13, 2017
f3453a7
regenerated library files
GerHobbelt Oct 13, 2017
7eaf10f
correctly point at parent development JISON's CLI interface again.
GerHobbelt Oct 13, 2017
5c52a50
regenerate library files; all tests pass.
GerHobbelt Oct 13, 2017
b61141d
bump build revision
GerHobbelt Oct 13, 2017
e6e783c
fix ES6 export spec
GerHobbelt Oct 13, 2017
836c969
sync changes with jison monorepo: corrections and augmentations for t…
GerHobbelt Oct 13, 2017
70e3c73
sync with jison monorepo changes: updated version and npm-ignore deve…
GerHobbelt Oct 13, 2017
f867530
synchronized with monorepo JISON
GerHobbelt Oct 15, 2017
61c61ba
updated NPM packages
GerHobbelt Oct 15, 2017
3ae60dc
updated NPM packages and rebuilt library files
GerHobbelt Oct 15, 2017
67c56a6
add deprecation/secondary-source notice
GerHobbelt Oct 15, 2017
b090d5c
updated NPM packages after quick-hack fix for jison-helpers-lib npm r…
GerHobbelt Oct 15, 2017
1d4513b
sync / update README with latest lexer grammar and link set a la jiso…
GerHobbelt Oct 15, 2017
7bbaba2
updated README to point at the monorepo for build instructions
GerHobbelt Oct 15, 2017
5406d89
sync README
GerHobbelt Oct 15, 2017
a53b050
all rollup.config.js files should define the same rollup process wher…
GerHobbelt Oct 15, 2017
733c311
updated npm packages
GerHobbelt Oct 15, 2017
7a76f17
removed dangerous `make` targets & rebuilt library files
GerHobbelt Oct 15, 2017
93b9406
`make everything`
GerHobbelt Oct 15, 2017
db81fbd
bumped build revision
GerHobbelt Oct 15, 2017
8694f37
sync
GerHobbelt Oct 16, 2017
ba36d59
sync + added/updated badges for all jison modules in their related RE…
GerHobbelt Oct 23, 2017
9f4e142
bumped build revision + sync
GerHobbelt Oct 23, 2017
65716b1
obsoleted. point at jison monorepo.
GerHobbelt Oct 24, 2017
ef905a1
reference the correct package to show the active npm version
GerHobbelt Dec 13, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ignore": [
"node_modules/**/*.js"
],
"compact": false,
"retainLines": false,
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 7"],
"node": "4.0"
}
}]
]
}
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.sh text eol=lf
*.bat text eol=crlf
*.php text eol=lf
*.inc text eol=lf
*.html text eol=lf
*.json text eol=lf
*.js text eol=lf
*.css text eol=lf
*.less text eol=lf
*.sass text eol=lf
*.ini text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.md text eol=lf
*.markdown text eol=lf
*.json5 text eol=lf

*.pdf binary
*.psd binary
*.pptx binary
*.xlsx binary
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
lex-parser.js
.DS_Store
node_modules/
npm-debug.log

# Editor bak files
*~
*.bak
*.orig

18 changes: 18 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
.DS_Store
node_modules/
npm-debug.log

# Editor backup files
*.bak
*~

# scratch space
/tmp/

# Ignore build/publish scripts, etc.
Makefile

# Sources which are compiled through jison
lex.y
lex.l

# misc files which are used during development
__patch_*.js
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
sudo: false

node_js:
- 8
- 7
- 6
- 5
- 4
- node

20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2009-2017 Zachary Carter

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
60 changes: 55 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,72 @@

all: install build test
JISON_VERSION := $(shell node ../../dist/cli-cjs-es5.js -V 2> /dev/null )

install:
ifndef JISON_VERSION
JISON = sh node_modules/.bin/jison
else
JISON = node ../../dist/cli-cjs-es5.js
endif

ROLLUP = node_modules/.bin/rollup
BABEL = node_modules/.bin/babel
MOCHA = node_modules/.bin/mocha




all: build test

prep: npm-install

npm-install:
npm install

npm-update:
ncu -a --packageFile=package.json

build:
node ./node_modules/.bin/jison lex.y lex.l
mv lex.js lex-parser.js
ifeq ($(wildcard node_modules/.bin/jison),)
$(error "### FAILURE: Make sure you have run 'make prep' before as the jison compiler is unavailable! ###")
endif
$(JISON) -m es -o lex-parser.js lex.y lex.l
-mkdir -p dist
cat lex-parser-prelude.js > lex-parser-base.js
cat lex-parser.js >> lex-parser-base.js
cat lex-parser-base.js > lex-parser.js
-rm lex-parser-base.js
$(ROLLUP) -c
$(BABEL) dist/lex-parser-cjs.js -o dist/lex-parser-cjs-es5.js
$(BABEL) dist/lex-parser-umd.js -o dist/lex-parser-umd-es5.js

test:
node tests/all-tests.js
$(MOCHA) --timeout 18000 --check-leaks --globals assert tests/


# increment the XXX <prelease> number in the package.json file: version <major>.<minor>.<patch>-<prelease>
bump:

git-tag:

publish:
npm run pub






clean:
-rm -f lex-parser.js
-rm -rf dist/
-rm -rf node_modules/
-rm -f package-lock.json

superclean: clean
-find . -type d -name 'node_modules' -exec rm -rf "{}" \;





.PHONY: all prep npm-install build test clean superclean bump git-tag publish npm-update

Loading