Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[for reference] all work done which is not in original repo #11

Open
wants to merge 492 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
492 commits
Select commit Hold shift + click to select a range
b7df791
rebuild
GerHobbelt Sep 15, 2016
1d44101
bump build revision number
GerHobbelt Sep 15, 2016
7e8fe8e
bumped build version
GerHobbelt Sep 15, 2016
4be15c3
rebuild lib
GerHobbelt Sep 18, 2016
03f3ae0
bumped build revision
GerHobbelt Sep 18, 2016
b2b415b
rebuild lib
GerHobbelt Sep 18, 2016
7ae07a3
bumped build revision
GerHobbelt Sep 18, 2016
b6b9842
updated grammar in README + bumped build revision
GerHobbelt Sep 18, 2016
ad698c9
rebuild lib
GerHobbelt Sep 18, 2016
0fd972f
bumped build revision
GerHobbelt Sep 18, 2016
9b084a0
rebuild lib
GerHobbelt Sep 18, 2016
f5b7c5d
rebuild lib
GerHobbelt Sep 18, 2016
5bc6b38
rebuild lib
GerHobbelt Sep 18, 2016
1475a75
bumped build revision
GerHobbelt Sep 18, 2016
f034aa5
rebuild lib
GerHobbelt Sep 19, 2016
ad695e6
bumped build revision
GerHobbelt Sep 19, 2016
bbdc68f
regenerated library
GerHobbelt Nov 9, 2016
47f0ede
a small refactoring of the lexer macros to gain a bit of readability …
GerHobbelt Nov 10, 2016
fea5881
added `%options XregExp` to include full support for Unicode regexes …
GerHobbelt Nov 11, 2016
7aa966c
regenerated library
GerHobbelt Nov 11, 2016
39a4b5b
regenerated library - after update in jison-lex: As some pcode/escape…
GerHobbelt Nov 11, 2016
87619d8
regenerated library + bumped build revision
GerHobbelt Nov 14, 2016
6c1ea28
regenerated library files
GerHobbelt Nov 14, 2016
af8f84d
bump revision & regenerate library files
GerHobbelt Nov 14, 2016
9c8b7f9
regenerated library
GerHobbelt Nov 17, 2016
f40ea07
regenerated library files
GerHobbelt Nov 17, 2016
d7a4b04
regenerated library files
GerHobbelt Nov 17, 2016
4a76dcc
bump revision & regenerated library files
GerHobbelt Nov 17, 2016
24579d0
regenerated library files
GerHobbelt Nov 17, 2016
7d1796e
bump build revision & rebuild
GerHobbelt Nov 17, 2016
bcec658
bumped build revision
GerHobbelt Nov 18, 2016
e387c15
rebuild library files
GerHobbelt Nov 18, 2016
b054911
make life easier for the rest of the jison code: always trim leading …
GerHobbelt Nov 18, 2016
0eba501
make life a bit bit *cleaner* for ourselves: do not automatically app…
GerHobbelt Nov 18, 2016
6317547
bumped build revision
GerHobbelt Nov 18, 2016
62f1b4c
rebuild library files
GerHobbelt Nov 19, 2016
26d51c8
Create parser.js
mamartel Dec 2, 2016
1520203
rebuild library files
GerHobbelt Dec 3, 2016
a8b0881
Merge branch 'leading-underscores' of github.com:dfreeman/ebnf-parser…
dfreeman Dec 13, 2016
99a2a03
Merge remote-tracking branch 'remotes/dfreeman/tmp'
GerHobbelt Dec 15, 2016
131011c
preliminary work to handle quoted string edge cases properly.
GerHobbelt Dec 15, 2016
1c44a1e
- unified lexers `bnf.l`, `ebnf.y` and `lex-parser/lex.l`
GerHobbelt Dec 15, 2016
3aff2c2
Merge remote-tracking branch 'remotes/dfreeman/leading-underscores'
GerHobbelt Dec 15, 2016
6b8f7a0
Merge remote-tracking branch 'remotes/mamartel/master' + added `xrege…
GerHobbelt Dec 15, 2016
45bc9d6
- remove forced debugging output
GerHobbelt Dec 15, 2016
09dd5c1
bumped revision and rebuilt
GerHobbelt Dec 15, 2016
a5ec08c
bumped build revision
GerHobbelt Dec 15, 2016
c674278
updated npm packages, tagged and bumped build revision and rebuilt
GerHobbelt Dec 15, 2016
accf496
bump build revision
GerHobbelt Jan 25, 2017
88cea49
re-tagged and bumped build revision again after mismanagement of buil…
GerHobbelt Jan 25, 2017
48ac8bc
cleanup: remove the unused %parse-param setting
GerHobbelt Jan 27, 2017
34c785b
bumped build number
GerHobbelt Jan 28, 2017
6c4d0e7
rebuilt library files
GerHobbelt Jan 30, 2017
2d9af6a
bumped build revision
GerHobbelt Jan 30, 2017
b54d9cd
bumped build revision
GerHobbelt Jan 30, 2017
7fa70d1
fix SHA-1: 6c4d0e78254fe4d5567f90846579eb174da69086 * rebuilt library…
GerHobbelt Jan 31, 2017
f8fa654
npm: use the new name `jison-gho`; bump build number
GerHobbelt Jan 31, 2017
972ed03
rebuilt library files
GerHobbelt Jan 31, 2017
1ddaa20
bumped build revision
GerHobbelt Jan 31, 2017
6eaf70a
rebuilt library files
GerHobbelt Jan 31, 2017
5a1c8ed
augment the jison parser and lexer to collect unknown `%xyz` declarat…
GerHobbelt Jan 31, 2017
4553e4d
sync TravisCI and npm package ignore settings
GerHobbelt Feb 1, 2017
589b801
TravisCI b0rks: trying to shut it up as it's git submodules causing t…
GerHobbelt Feb 1, 2017
3d30c31
Making TravisCI comply, step 2
GerHobbelt Feb 1, 2017
7848342
Making TravisCI comply, step 3
GerHobbelt Feb 1, 2017
f09d16b
grrrr....
GerHobbelt Feb 1, 2017
5579b34
update all TravisCI build badges in the README's
GerHobbelt Feb 1, 2017
6b917dc
rebuilt library files
GerHobbelt Feb 1, 2017
5645f8a
rebuilt library files
GerHobbelt Feb 1, 2017
8544bd5
bumped build revision
GerHobbelt Feb 1, 2017
f459820
rebuilt library files
GerHobbelt Feb 1, 2017
80e8eaf
fix crash when parser encounters unsupported input: the Error message…
GerHobbelt Feb 3, 2017
58d8596
accept Unicode → as an alias of the `->` operator, which assigns an a…
GerHobbelt Feb 10, 2017
5c5b13e
regenerated library files
GerHobbelt Feb 19, 2017
37f8a8d
migrated all tests to mocha+chai (in-browser test mode via tests/inde…
GerHobbelt Feb 19, 2017
917d5b8
feature: allow `%options` to spread across multiple lines, as long as…
GerHobbelt Feb 20, 2017
385ed19
sync action code with lex-parser: make sure `fs` is available where r…
GerHobbelt Feb 20, 2017
0d4879e
fix unit test failures reported by TravisCI
GerHobbelt Feb 20, 2017
79980d6
rebuilt library files
GerHobbelt Feb 20, 2017
53339da
bumped build revision
GerHobbelt Feb 20, 2017
a55010e
rebuilt library files
GerHobbelt Feb 20, 2017
66c2999
rebuilt library files
GerHobbelt Feb 21, 2017
44232c5
bumped build revision
GerHobbelt Feb 21, 2017
32d0df5
rebuilt library files
GerHobbelt Feb 21, 2017
7490e46
bumped build revision
GerHobbelt Mar 4, 2017
16b9966
rebuilt library files
GerHobbelt Mar 4, 2017
1f6729f
rebuilt library files
GerHobbelt Mar 8, 2017
f2fc065
bumped build revision
GerHobbelt Mar 8, 2017
41245c8
rebuilt library files
GerHobbelt Mar 8, 2017
7477c3e
fix: add Unicode/XRegExp support to the EBNF parser as well: its code…
GerHobbelt Mar 26, 2017
ba669df
refactor: instead of cutting up strings, use the built-in lexer featu…
GerHobbelt Mar 26, 2017
a83acde
use a non-capturing group in the lexer rule regex when the submatch i…
GerHobbelt Mar 26, 2017
700d6f0
fix offset bug in string extraction for a Unicode rule
GerHobbelt Mar 26, 2017
b0312cf
better name for rule `expression_suffix[ed]`: `suffixed_expression`. …
GerHobbelt Mar 26, 2017
6fda6c4
regenerated library files
GerHobbelt Mar 26, 2017
224d55c
rebuilt library files
GerHobbelt Mar 26, 2017
3b0e487
bumped build revision
GerHobbelt Mar 26, 2017
f1fafb6
rebuilt library files
GerHobbelt Mar 26, 2017
6b9ab92
no need to run `npm install --only-dev` any more; this was a quick ha…
GerHobbelt Apr 8, 2017
f0dba77
rebuilt library files
GerHobbelt Apr 8, 2017
25d03ec
rebuilt library files
GerHobbelt Apr 8, 2017
dd7786f
fix https://github.com/zaach/ebnf-parser/issues/9
GerHobbelt Apr 9, 2017
a4160d4
rebuilt library files
GerHobbelt Apr 9, 2017
e6ecee8
rebuilt library files
GerHobbelt Apr 9, 2017
cfd9ec5
bumped build revision
GerHobbelt Apr 9, 2017
673bae2
rebuilt library files
GerHobbelt Apr 9, 2017
067c892
rebuilt library files
GerHobbelt Apr 9, 2017
5b34e7a
bumped build revision
GerHobbelt Apr 9, 2017
892972f
rebuilt library files
GerHobbelt Apr 9, 2017
4643c6f
bump version
GerHobbelt Apr 15, 2017
075fcf5
fix issue where the EBNF->BNF transformation code did not support Uni…
GerHobbelt Jun 22, 2017
44178e4
whitespace police
GerHobbelt Jun 22, 2017
bdebeb5
updated NPM dependencies
GerHobbelt Jun 22, 2017
13e2c88
regenerated library files
GerHobbelt Jun 22, 2017
6384789
fixed subtle bug in alias naming (numbered named implicit aliases, e.…
GerHobbelt Jul 22, 2017
5beffb1
add extra checks to ward against the use of ambiguous term references…
GerHobbelt Jul 23, 2017
3f7654d
remove superfluous debug print statements
GerHobbelt Jul 23, 2017
c13ce24
updated NPM packages and regenerated library files
GerHobbelt Jul 23, 2017
3fa36d8
BNF grammar parser: much improved error analysis and reporting for co…
GerHobbelt Jul 31, 2017
3ab70f7
improve error analysis and reporting by better/extended error reporti…
GerHobbelt Jul 31, 2017
76f7180
regenerated library files
GerHobbelt Jul 31, 2017
d31c0e9
bumped build revision
GerHobbelt Jul 31, 2017
a2bb1cf
rebuilt library files
GerHobbelt Jul 31, 2017
eb419cd
rebuilt library files
GerHobbelt Jul 31, 2017
5edc71b
bumped build revision
GerHobbelt Jul 31, 2017
a124c5e
updated NPM packages
GerHobbelt Jul 31, 2017
796970d
rebuilt library files
GerHobbelt Jul 31, 2017
ff6645c
update the git tag&bump shell script to fix the issue of losing the p…
GerHobbelt Jul 31, 2017
e2705ff
rebuilt library files
GerHobbelt Jul 31, 2017
5908e67
bumped build revision
GerHobbelt Jul 31, 2017
268e843
updated NPM packages
GerHobbelt Jul 31, 2017
fe2dba9
update TravisCI config to support NodeJS 4-8 and don't use deprecated…
GerHobbelt Jul 31, 2017
b115cb7
regenerate library files
GerHobbelt Aug 8, 2017
64b2596
remove outdated commented-out code: strings are properly parsed in th…
GerHobbelt Aug 19, 2017
5d2556c
- fix corrupted console output/reports due to printf-style behaviour …
GerHobbelt Aug 20, 2017
0ba883c
use the devDependency jison-gho as a fallback: when we're developing,…
GerHobbelt Aug 20, 2017
0bc1a6f
- silence the warn/log output of the tests' internals (unless you set…
GerHobbelt Aug 20, 2017
6affd3b
cleanup tests: use beforeEach mocha API to set up each BNF parse test.
GerHobbelt Aug 20, 2017
337ed97
include a little utility script to patch the version in the JavaScrip…
GerHobbelt Aug 20, 2017
bf4f565
export the version of this module + rebuilt library files
GerHobbelt Aug 20, 2017
eb70957
- updated `make clean` target to get rid of the package lock file pro…
GerHobbelt Aug 20, 2017
2110cd5
EBNF grammar does not need to support all EOF and EPSILON flavors as …
GerHobbelt Aug 20, 2017
8e5663f
- make the BNF lexer produce a special EOF_ID token for `$end` and `$…
GerHobbelt Aug 20, 2017
26df6f4
make all rule actions explicit (just for safety while we work on the …
GerHobbelt Aug 20, 2017
4bc9768
fix: uncovered a nasty implicit use of the default action prelude of …
GerHobbelt Aug 20, 2017
43376c6
Merge branch 'fix-nasty-default-action-usage'
GerHobbelt Aug 20, 2017
1fac847
regenerated library files and fixed one test: the new code produces r…
GerHobbelt Aug 20, 2017
1d48732
regenerated library files after jison update
GerHobbelt Aug 21, 2017
e868ad0
updated NPM packages
GerHobbelt Aug 26, 2017
4744051
Bumped version to 0.6.0-<build> to mirror the version update of the j…
GerHobbelt Aug 26, 2017
e912513
cleaning up lexer rules: use the `[^]` idiom to match any character *…
GerHobbelt Aug 26, 2017
7c30de9
Patch version in the source files to match the version in package.json
GerHobbelt Aug 26, 2017
dd16763
Defensive coding in reference to issue https://github.com/zaach/jison…
GerHobbelt Aug 26, 2017
9a1dc2e
grammar cleanup + enhancement: `%code` section identifiers MAY have `…
GerHobbelt Aug 26, 2017
e9d1c75
preliminary work for grammar rule description texts (to be used in th…
GerHobbelt Aug 26, 2017
2e4c1e5
TODO: added error recovery/diagnostic rules to the grammar for improv…
GerHobbelt Aug 26, 2017
1aa227d
grammar now accepts `%code id %{...action code...%}` and since we use…
GerHobbelt Aug 26, 2017
0908aca
remove conflict due to the newly added grammar's error recovery rules
GerHobbelt Aug 26, 2017
e70b01f
regenerated library files
GerHobbelt Aug 26, 2017
a31a1ac
moving towards public 'scoped package' releases as per https://docs.n…
GerHobbelt Aug 27, 2017
ae0020b
updated source files: moving towards public 'scoped package' releases…
GerHobbelt Aug 27, 2017
d84f9a2
ws
GerHobbelt Aug 27, 2017
7411be8
added `make publish' target to publish all jison modules to NPM at once.
GerHobbelt Aug 27, 2017
4437c3b
bumped build revision
GerHobbelt Aug 27, 2017
b4f778e
fixed detection of proper working JISON in a full development environ…
GerHobbelt Aug 27, 2017
e12e398
added `make npm-update` target to run the npmu/ncu npm utility across…
GerHobbelt Aug 27, 2017
99b1174
fix SHA-1: b4f778e5f927ad7875b6afe224a8aac0a42b7aec :: fixed detectio…
GerHobbelt Aug 27, 2017
8a3fbc6
`make superclean && make prep && make && make site` executed without …
GerHobbelt Aug 27, 2017
51b5322
bumped build revision before we produce another release.
GerHobbelt Aug 27, 2017
b69812e
rebuilt library files
GerHobbelt Aug 27, 2017
af89962
bumped build revision
GerHobbelt Aug 27, 2017
5e16ef6
updated NPM packages
GerHobbelt Aug 27, 2017
759a611
whitespace police raid
GerHobbelt Aug 28, 2017
ec7dbfd
making sure all error reports via `yyerror()` print the error locatio…
GerHobbelt Aug 31, 2017
3301ab8
locking down intermediate development stage
GerHobbelt Sep 1, 2017
8a8c358
- fix issue where `%options` option values were not parsed correctly:…
GerHobbelt Sep 5, 2017
70257ea
fix rare issue where EBNF generates rule symbols which happen to coll…
GerHobbelt Sep 5, 2017
7f46275
regenerated library files.
GerHobbelt Sep 5, 2017
6784379
whitespace in grammar file
GerHobbelt Sep 6, 2017
2fd7436
updated NPM packages
GerHobbelt Sep 6, 2017
96dc2bd
- fix for SHA-1: 8a8c3589e0301a97e436af526ebd393c456ea4d7 (:: fix the…
GerHobbelt Sep 6, 2017
3370c5d
fix tests: the reported diff was pretty confusion but after injecting…
GerHobbelt Sep 6, 2017
e0acee6
regenerated library files with latest jison (development); all tests …
GerHobbelt Sep 6, 2017
339ea04
fix regex macro copy-pasta mistake introduced in SHA-1: 70257eaee9719…
GerHobbelt Sep 6, 2017
2379258
fixup action code decoding for the modern jison reference modes `#n` …
GerHobbelt Sep 6, 2017
39efea2
turn off internal debugging mode again...
GerHobbelt Sep 6, 2017
de04d67
made all unit tests pass once again
GerHobbelt Sep 10, 2017
0d8503f
- bumped build revision
GerHobbelt Sep 11, 2017
f6d3246
regenerated library files using the latest jison
GerHobbelt Sep 11, 2017
b0c84f2
regenerated library files using bleeding edge jison
GerHobbelt Sep 11, 2017
8a7bdc1
migrating the very useful `prettyPrintRange` to becoming a lexer API
GerHobbelt Sep 11, 2017
b3ee308
migrating the very useful `prettyPrintRange` to becoming a lexer API:…
GerHobbelt Sep 11, 2017
1c90660
jison having modules is still a bloody nuisance when you introduce fe…
GerHobbelt Sep 12, 2017
a1e6746
bumped build revision
GerHobbelt Sep 12, 2017
7d5eab7
updated NPM packages
GerHobbelt Sep 12, 2017
93e9a2a
bumped build revision
GerHobbelt Sep 12, 2017
938b75e
updated NPM packages
GerHobbelt Sep 12, 2017
e6b12e5
rebuilt library files
GerHobbelt Sep 17, 2017
6253bb8
parser AST: keep the original source EBNF around for possible pretty-…
GerHobbelt Sep 24, 2017
f39755b
DO NOT modify the input grammar object in `EBNF.transform()`! Treat i…
GerHobbelt Sep 24, 2017
465175c
Adjusted tests accordingly: keep EBNF next to (transformed) BNF in gr…
GerHobbelt Sep 24, 2017
48a629d
regenerated library files
GerHobbelt Sep 24, 2017
677fcc4
updated NPM packages
GerHobbelt Sep 24, 2017
e57e8a2
bumped build revision
GerHobbelt Sep 24, 2017
a04abd6
updated NPM packages
GerHobbelt Sep 24, 2017
2643ee1
rebuilt library files
GerHobbelt Sep 24, 2017
ac6cfd5
updated NPM packages
GerHobbelt Sep 24, 2017
83c28b9
bumped build revision
GerHobbelt Sep 24, 2017
e8ec567
updated NPM packages
GerHobbelt Sep 24, 2017
f81ae9e
corrected the copyright in the license files (now correctly attributi…
GerHobbelt Sep 29, 2017
119dc56
code refactoring: migrate to using the common library json-helpers-lib
GerHobbelt Sep 29, 2017
9272dc4
regenerated library files
GerHobbelt Sep 29, 2017
457d46a
tightening the test rig: it turns out you must spec `--check-leaks` f…
GerHobbelt Sep 29, 2017
6d19ca7
- fix bug in grammar (we don't accept arrow-actions for %code and/or …
GerHobbelt Sep 29, 2017
5bc6019
tightening the test rig: it turns out you must spec `--check-leaks` f…
GerHobbelt Sep 29, 2017
9753220
rebuilt library files
GerHobbelt Sep 29, 2017
6be429a
make sure we use the bleeding edge jison+tools collective for testing…
GerHobbelt Sep 29, 2017
6b3224f
moved the `dquote()` function to the jison-helpers-lib module as it's…
GerHobbelt Oct 3, 2017
a67d1d1
updated NPM packages
GerHobbelt Oct 3, 2017
e2e825f
reformat yyError() messages to be more legible, using ES2015 string t…
GerHobbelt Oct 12, 2017
67ac29c
fix important typo in parser error message
GerHobbelt Oct 12, 2017
b8b30f1
migrate files to ES6
GerHobbelt Oct 12, 2017
d75c452
tests et al: use the `ebnf-parser` as the single interface which prov…
GerHobbelt Oct 12, 2017
94451a0
patch grammar files for ES6 support, including (hacky) prelude to be …
GerHobbelt Oct 12, 2017
676c3ec
migrate everything to compile to ES6 and then use rollup+babel to pro…
GerHobbelt Oct 12, 2017
c3476de
include the generated library files from `dist/` in the repo.
GerHobbelt Oct 12, 2017
9ac1b50
regenerated library files; all tests pass.
GerHobbelt Oct 12, 2017
d04c4e2
tweak the export approach to suit JISON
GerHobbelt Oct 13, 2017
fca4954
add action code validation by parsing each chunk using recast via jis…
GerHobbelt Oct 13, 2017
5671ae6
fix unit tests to pass again now that we parse/compile every action c…
GerHobbelt Oct 13, 2017
296cf49
correctly point to the correct CLI entry point of development parent …
GerHobbelt Oct 13, 2017
10242a3
regenerated library files; all tests pass.
GerHobbelt Oct 13, 2017
b380756
bump build revision + rebuild
GerHobbelt Oct 13, 2017
08840c2
sync changes with jison monorepo: corrections and augmentations for t…
GerHobbelt Oct 13, 2017
fd5e2dd
sync with jison monorepo changes: updated version and npm-ignore deve…
GerHobbelt Oct 13, 2017
8213bd3
synchronized with monorepo JISON
GerHobbelt Oct 15, 2017
0c69266
updated NPM packages
GerHobbelt Oct 15, 2017
b1a5bfd
sync README + prevent npm publish from succeeding (that would be VERY…
GerHobbelt Oct 15, 2017
a1b417c
sync README and updated NPM packages
GerHobbelt Oct 15, 2017
0d1907e
all rollup.config.js files should define the same rollup process wher…
GerHobbelt Oct 15, 2017
3fd0d0d
updated deps + rebuilt lib files
GerHobbelt Oct 15, 2017
3a31c2e
removed dangerous `make` targets & rebuilt library files
GerHobbelt Oct 15, 2017
600de14
`make everything`
GerHobbelt Oct 15, 2017
37c164d
bumped build revision
GerHobbelt Oct 15, 2017
bb1a73b
sync
GerHobbelt Oct 16, 2017
0a60004
sync + added/updated badges for all jison modules in their related RE…
GerHobbelt Oct 23, 2017
08af72f
bumped build revision + sync
GerHobbelt Oct 23, 2017
0cf82aa
obsoleted. point at the jison monorepo.
GerHobbelt Oct 24, 2017
cd60c99
refer the correct package to show the NPM version
GerHobbelt Dec 13, 2017
1936131
fix typo
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 @@
parser.js
.DS_Store
node_modules/
npm-debug.log

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

21 changes: 21 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.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
ebnf.y
bnf.y
bnf.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.
67 changes: 62 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,81 @@

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 bnf.y bnf.l
ifeq ($(wildcard ./node_modules/.bin/jison),)
$(error "### FAILURE: Make sure you have run 'make prep' before as the jison compiler is unavailable! ###")
endif

node __patch_version_in_js.js

$(JISON) -m es bnf.y bnf.l
mv bnf.js parser.js

node ./node_modules/.bin/jison ebnf.y
$(JISON) -m es ebnf.y
mv ebnf.js transform-parser.js

node __patch_prelude_in_js.js

-mkdir -p dist
$(ROLLUP) -c
$(BABEL) dist/ebnf-parser-cjs.js -o dist/ebnf-parser-cjs-es5.js
$(BABEL) dist/ebnf-parser-umd.js -o dist/ebnf-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 parser.js
-rm -f transform-parser.js
-rm -f bnf.js
-rm -f ebnf.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