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 #21

Open
wants to merge 426 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
426 commits
Select commit Hold shift + click to select a range
144c2f3
typo fix in comments
GerHobbelt Nov 10, 2016
9917bef
refactoring: cache `\\p{NAME}` bitarray expansions; this also serves …
GerHobbelt Nov 10, 2016
fda6af3
refactoring: enable `bitarray2set()` to produce a regex 'escape', suc…
GerHobbelt Nov 10, 2016
357bef4
refactoring: next step towards recognizing the sets for various escapes
GerHobbelt Nov 10, 2016
002d0fc
refactoring: next step: `in_inv_set` in macro lookup table was used b…
GerHobbelt Nov 10, 2016
c4c2cb0
refactoring / optimization: now the bitarray operations recognize the…
GerHobbelt Nov 10, 2016
80635ab
refactoring / optimization: step towards recognizing `\pNAME` pcodes …
GerHobbelt Nov 10, 2016
124b022
refactoring / optimizing: fixing bugs and moving towards allowing reg…
GerHobbelt Nov 10, 2016
f80a61d
refactoring / regex minification: next bit of work to recognize pcode…
GerHobbelt Nov 10, 2016
938cfab
bugfix for faulty processing of lexer macros which OR-merge regex set…
GerHobbelt Nov 11, 2016
a09bc28
refactoring / regex set minification: next step done: now the pcode/e…
GerHobbelt Nov 11, 2016
432a6f7
refactoring: removed dead code
GerHobbelt Nov 11, 2016
a268dd7
added regex set minification code for inverted sets; adjusted the uni…
GerHobbelt Nov 11, 2016
54ef8ae
removed debug code
GerHobbelt Nov 11, 2016
3af0015
watch for the `%options xregexp` setting when we go and set things up…
GerHobbelt Nov 11, 2016
cdc13d1
As some pcode/escapes still happen to deliver a LARGER regex string i…
GerHobbelt Nov 11, 2016
5e3cd17
regenerated library + bumped build revision
GerHobbelt Nov 14, 2016
0f83b04
bump revision & regenerate library files
GerHobbelt Nov 14, 2016
feb6c10
bump revision & regenerated library files
GerHobbelt Nov 17, 2016
6e0f5e4
bump build revision & rebuild
GerHobbelt Nov 17, 2016
3faafc1
fix typo in comments
GerHobbelt Nov 17, 2016
1e17d3a
more comment typo fixes
GerHobbelt Nov 17, 2016
68a19e1
stricter (safer) `setInput()` lexer API: make sure we survive `setInp…
GerHobbelt Nov 17, 2016
b3d4bd8
separate assignments for better code readability.
GerHobbelt Nov 18, 2016
e2e9b5c
better code: removed superfluous `clear()` call in `next()` EOF path:…
GerHobbelt Nov 18, 2016
8c5dc23
augmented the unit tests: made a few tests more complete/stricter and…
GerHobbelt Nov 18, 2016
f82406c
test if lexer continues correctly after having encountered an unrecog…
GerHobbelt Nov 18, 2016
b578989
1. make sure that when an `yy.parseError` function is available, we u…
GerHobbelt Nov 18, 2016
55a611c
sync the `JisonLexerError` class construction with the `JisonParserEr…
GerHobbelt Nov 18, 2016
12a6e35
1. make sure that when we invoke the `yy.parser.parseError` function,…
GerHobbelt Nov 18, 2016
725768a
same approach as already done for jison *parser*: refactor the error …
GerHobbelt Nov 18, 2016
a372ca4
1. make code backwards compatible with previous revisions regarding `…
GerHobbelt Nov 18, 2016
a9dcd04
refactor the code generator helpers in sync with the work in the jiso…
GerHobbelt Nov 18, 2016
08982cc
bumped build revision
GerHobbelt Nov 18, 2016
ab73df2
JSHint/JSLint/JSCS fixups and variable hoisting -- no functional chan…
GerHobbelt Nov 18, 2016
26a114e
minimal simplification of the code generator.
GerHobbelt Nov 18, 2016
84590d6
bumped build revision
GerHobbelt Nov 18, 2016
f2ca3e7
- rename `in_rules_failure_analysis_mode` to `__in_rules_failure_anal…
GerHobbelt Nov 19, 2016
bb44b36
attempt at documenting the significant difference between `lexer.matc…
GerHobbelt Nov 19, 2016
c34c50c
record the measured performance [gains] for several lexer optimizatio…
GerHobbelt Nov 19, 2016
55204f5
`yytext.length` --> `yyleng`
GerHobbelt Dec 15, 2016
f41120e
updated NPM packages and match them to the packages required by jison…
GerHobbelt Dec 15, 2016
af64822
bumped revision and rebuilt
GerHobbelt Dec 15, 2016
969d6aa
bumped build revision
GerHobbelt Dec 15, 2016
59375e0
bump build revision
GerHobbelt Jan 25, 2017
8641401
re-tagged and bumped build revision again after mismanagement of buil…
GerHobbelt Jan 25, 2017
3907938
prepwork to pass `%parse-params` from parser to lexer, so that all 'p…
GerHobbelt Jan 27, 2017
542e59a
propagate `%parse-params` into the lexer: ensure that all action code…
GerHobbelt Jan 27, 2017
d2215e5
bumped build number
GerHobbelt Jan 28, 2017
d1cab01
`input()`: don't set `done` as we want the `lex()`/`next()` APIs to b…
GerHobbelt Jan 28, 2017
cc90dba
bumped build revision
GerHobbelt Jan 30, 2017
ed98ab7
bumped build revision
GerHobbelt Jan 30, 2017
a34be0c
npm: use the new name `jison-gho`; bump build number
GerHobbelt Jan 31, 2017
3e2d5b7
bumped build revision
GerHobbelt Jan 31, 2017
7a345f4
First bit of work for #20: lexer run-time optimizations. For that to …
GerHobbelt Jan 31, 2017
a1310af
typo fix
GerHobbelt Jan 31, 2017
cb458d2
sync TravisCI and npm package ignore settings
GerHobbelt Feb 1, 2017
63fc1a7
added npmignore file; synced with the other repos
GerHobbelt Feb 1, 2017
501e2f4
update all TravisCI build badges in the README's
GerHobbelt Feb 1, 2017
04c63e3
rebuilt library files
GerHobbelt Feb 1, 2017
d80da80
bumped build revision
GerHobbelt Feb 1, 2017
6724da8
CLI: do not accept unknown options! (This is the same behaviour as th…
GerHobbelt Feb 2, 2017
a2844c7
synced the code generators with the ones in the jison tool: support a…
GerHobbelt Feb 2, 2017
9e93392
fix problem where `%parse-params` parameters wouldn't make it into th…
GerHobbelt Feb 2, 2017
57dd804
Check whether a *sane* condition has been pushed before: this makes t…
GerHobbelt Feb 10, 2017
7fec52e
migrated all tests to mocha+chai (in-browser test mode via tests/inde…
GerHobbelt Feb 19, 2017
4889e5b
fix one of the failing tests due to chai.assert.throws() API vs. old …
GerHobbelt Feb 19, 2017
a016fc7
fixed the second test: chai assert.throws() API *is* slightly differe…
GerHobbelt Feb 19, 2017
b9e177f
add missing browser driver file for mocha
GerHobbelt Feb 19, 2017
615f5a7
fix JSHint reported errors
GerHobbelt Feb 19, 2017
44ea1c1
removed test code from the library file: it should exist in the unit …
GerHobbelt Feb 20, 2017
75beb22
two bugfixes:
GerHobbelt Feb 20, 2017
f9f7db3
added extensive unit test to verify that the lexer will throw a prope…
GerHobbelt Feb 20, 2017
2ba0e35
bugfix: to help ensure that LEXER errors throw a LEXER EXCEPTION CLAS…
GerHobbelt Feb 20, 2017
f4da453
comment formatting fixups...
GerHobbelt Feb 20, 2017
34483de
bumped build revision
GerHobbelt Feb 20, 2017
bdf6c3c
bumped build revision
GerHobbelt Feb 21, 2017
e0b10c4
bumped build revision
GerHobbelt Mar 4, 2017
a42da96
bit of generated code indenting corrections; more to do. Am consideri…
GerHobbelt Mar 5, 2017
be13034
Fixing a series of bugs which crawled out of the woodwork during inve…
GerHobbelt Mar 8, 2017
c35a0ac
More work on https://github.com/GerHobbelt/jison/issues/6 : same unit…
GerHobbelt Mar 8, 2017
986616b
bumped build revision
GerHobbelt Mar 8, 2017
3cd881b
bit of code refactoring: use a global constant within the tool to def…
GerHobbelt Mar 9, 2017
fc04c77
Remove dead code from old lexer experiment where I checked if pre-che…
GerHobbelt Mar 9, 2017
76d8eaf
some tweaks
kmh287 Mar 13, 2017
f9d8c07
refactored the regex set (re)construction work code into a separate f…
GerHobbelt Mar 26, 2017
f216586
done #22: merge remote-tracking branch 'remotes/kmh287/kmh287_perform…
GerHobbelt Mar 26, 2017
0402265
tiny performance optimization: when calculating `last_column`, we alr…
GerHobbelt Mar 26, 2017
05cad73
fix: `tokens` is a hash map, mapping token names to numbers. Also in…
GerHobbelt Mar 26, 2017
e37a29a
refactor: synchronized jison-lex code with jison code behaviour regar…
GerHobbelt Mar 26, 2017
c40528f
refactor: synchronized the CLI code to ensure jison-lex and jison bot…
GerHobbelt Mar 26, 2017
282ac44
ensure the `options` dumped with each generated lexer are clean and d…
GerHobbelt Mar 26, 2017
8b00e38
take out the newline-related work from #22 as the code is ~5% without…
GerHobbelt Mar 26, 2017
fcc53a2
starting work on #20
GerHobbelt Mar 26, 2017
4beac78
also build the examples by default when you run `make`; this serves a…
GerHobbelt Mar 26, 2017
be0ebe4
updated the options code + whitespace police
GerHobbelt Mar 26, 2017
c7d859b
clearly comment the flex-mode extra rule, which helps simulate flex l…
GerHobbelt Mar 26, 2017
3cfd28b
fix: don't include irrelevant options in the generated lexer
GerHobbelt Mar 26, 2017
083d6d8
bumped build revision
GerHobbelt Mar 26, 2017
8c1fa11
minimal optimization by invariant code motion in the lexer kernel (#20)
GerHobbelt Mar 26, 2017
e1f3d87
working on https://github.com/zaach/jison-lex/issues/20 / https://git…
GerHobbelt Mar 27, 2017
34c8223
working on https://github.com/zaach/jison-lex/issues/20 / https://git…
GerHobbelt Mar 27, 2017
ccfc79c
pr comment
kmh287 Mar 29, 2017
149d376
no need to run `npm install --only-dev` any more; this was a quick ha…
GerHobbelt Apr 8, 2017
6c77688
fix https://github.com/zaach/ebnf-parser/issues/9
GerHobbelt Apr 9, 2017
24ae0a9
Merge commit 'ccfc79c6b90a57cbc464b2a4985acdd968cec120'
GerHobbelt Apr 9, 2017
d08ebbf
rebuilt library files
GerHobbelt Apr 9, 2017
5dc9aab
bumped build revision
GerHobbelt Apr 9, 2017
a031907
bumped build revision
GerHobbelt Apr 9, 2017
f879bda
prepwork for https://github.com/GerHobbelt/jison/issues/7: doing the …
GerHobbelt Apr 11, 2017
a837f81
better identify the logged sourcecode when debugging
GerHobbelt Apr 11, 2017
91f8816
work on https://github.com/GerHobbelt/jison/issues/7: make sure the '…
GerHobbelt Apr 11, 2017
0811746
https://github.com/GerHobbelt/jison/issues/7: rename options to camel…
GerHobbelt Apr 11, 2017
e1d5d01
https://github.com/GerHobbelt/jison/issues/7: make the two new option…
GerHobbelt Apr 12, 2017
2ca539a
https://github.com/GerHobbelt/jison/issues/7: code cleanup: pass the …
GerHobbelt Apr 13, 2017
9259a6c
https://github.com/GerHobbelt/jison/issues/7: fiddling the code strip…
GerHobbelt Apr 13, 2017
b981545
fix variable leakage: missing local variable declaration
GerHobbelt Apr 14, 2017
932048c
https://github.com/GerHobbelt/jison/issues/7: tagging the generator c…
GerHobbelt Apr 14, 2017
5178609
code-executor-and-dumper: attempt to save to one of a few target loca…
GerHobbelt Apr 14, 2017
1169586
printFunctionSourceCodeContainer() API + a bit of code reformatting a…
GerHobbelt Apr 14, 2017
5738cf7
NodeJS 4.x/5.x do not support the ES6 'spread syntax' `...args`, henc…
GerHobbelt Apr 14, 2017
acc6239
working on https://github.com/zaach/jison/issues/341: extending the l…
GerHobbelt Apr 15, 2017
ae35393
GCC: don't use @export but @public; we're not getting our way with GC…
GerHobbelt Apr 15, 2017
d76230e
Do not blow up on long sequences of empty tokens
dmarcotte Jun 16, 2017
ef200e6
Merge pull request #1 from dmarcotte/ignored-token-stak-overflow
dmarcotte Jun 16, 2017
d1438af
updated NPM dependencies and added the `npm run build` task
GerHobbelt Jun 23, 2017
de24532
whitespace police
GerHobbelt Jun 23, 2017
7d36c84
all tests pass: tighten and correct the unit tests as we now output s…
GerHobbelt Jun 23, 2017
a094b27
fix/rework issue where the lexer EOF token would have yylloc (locatio…
GerHobbelt Jun 23, 2017
7d2b9ff
`parseError()`: when this API is invoked without referencing a proper…
GerHobbelt Jun 23, 2017
9d64031
updated NPM packages
GerHobbelt Jun 25, 2017
24e0b90
refactoring the safe-code-exec-and-diag.js source: move the SourceCod…
GerHobbelt Jun 25, 2017
8a96317
minimal tweak to the lexer engine error messages: use a colon ':' ins…
GerHobbelt Jun 25, 2017
4aff436
slightly stricter checks for some assert.throws() checks in the unit …
GerHobbelt Jun 25, 2017
c1b3f9f
fix mistakes in commit SHA-1: 24e0b902a21e7347ac8a89b44b4b5b7988fb209…
GerHobbelt Jun 25, 2017
4a8bc72
- anticipate the further optimization of the JISON code generator: ad…
GerHobbelt Jul 22, 2017
bba881c
preliminary API enhancement to help build parsers/compilers which can…
GerHobbelt Jul 23, 2017
fef24dd
updated NPM packages
GerHobbelt Jul 23, 2017
862733f
Merge remote-tracking branch 'remotes/looker/0.3.4_looker_custom' (it…
GerHobbelt Jul 24, 2017
245a9c4
- all lexer errors should show the input snippet where the error occu…
GerHobbelt Jul 30, 2017
83fc857
fixed function code injection for `options.pre_lex` and `options.post…
GerHobbelt Jul 31, 2017
98d32b7
support `yyerror(str...)` usage in lexer rule actions, exactly like w…
GerHobbelt Jul 31, 2017
562d67a
bumped build revision
GerHobbelt Jul 31, 2017
fe0404f
rebuilt library files
GerHobbelt Jul 31, 2017
5e89b51
rebuilt library files
GerHobbelt Jul 31, 2017
ca0cbf7
bumped build revision
GerHobbelt Jul 31, 2017
82045ca
updated NPM packages
GerHobbelt Jul 31, 2017
7f49f62
update the git tag&bump shell script to fix the issue of losing the p…
GerHobbelt Jul 31, 2017
57dacf6
bumped build revision
GerHobbelt Jul 31, 2017
f5664de
updated NPM packages
GerHobbelt Jul 31, 2017
52a7a8b
update TravisCI config to support NodeJS 4-8 and don't use deprecated…
GerHobbelt Jul 31, 2017
d1760cf
- fix corrupted console output/reports due to printf-style behaviour …
GerHobbelt Aug 20, 2017
de905c9
bumped build revision and prepped for encoding the version in the fil…
GerHobbelt Aug 20, 2017
3e39916
include a little utility script to patch the version in the JavaScrip…
GerHobbelt Aug 20, 2017
5134fd4
- updated `make clean` target to get rid of the package lock file pro…
GerHobbelt Aug 20, 2017
88eecff
defensive coding: fix situations like https://github.com/zaach/jison/…
GerHobbelt Aug 21, 2017
73d6e2d
- fix: make sure `parseError`s `this` context indeed always reference…
GerHobbelt Aug 26, 2017
1ab2ba2
- fixed a comma-separated statement, which should have been semicolon…
GerHobbelt Aug 26, 2017
7ba567e
minimal code cleanup of the example: a matter of style, this one
GerHobbelt Aug 26, 2017
04ee726
Ignore some temporary/WIP crap to make git commits simpler to watch
GerHobbelt Aug 26, 2017
a55bb67
updated NPM packages and bumped the version to 0.6.0-<build> to signa…
GerHobbelt Aug 26, 2017
a398aaf
obsoleted: remove `parseParams` as function call arguments: as with j…
GerHobbelt Aug 26, 2017
5b45449
minimal refactor: as **we reserve the use of arbitrary variables, fun…
GerHobbelt Aug 26, 2017
72c1e9e
bit of code cleanup
GerHobbelt Aug 26, 2017
c4321e9
use ES6 string template to produce the large documentation comment fo…
GerHobbelt Aug 26, 2017
2642a56
defensive coding in the `describeYYLLOC()` API
GerHobbelt Aug 26, 2017
32ebaaf
code refactor: the important regex for (`ID`) identifiers should be t…
GerHobbelt Aug 26, 2017
f33526b
introducing the `recast` and `ast-util` NPM packages, to be used with…
GerHobbelt Aug 26, 2017
8aa0af3
fix: fix coding error (copy-paste from jison) in the `yyerror()` API …
GerHobbelt Aug 26, 2017
d8fa2a8
code cleanup
GerHobbelt Aug 26, 2017
042ae52
introducing `recast` to help us preprocess the generated lexer run-ti…
GerHobbelt Aug 26, 2017
e31931a
- added the `actionsUseXXXX` feature bits.
GerHobbelt Aug 26, 2017
dd89fbc
output formatting tweaks: make sure all number comments for the rules…
GerHobbelt Aug 26, 2017
39a2257
fix merge failure: point at and `require()` the correct `nomnom` pack…
GerHobbelt Aug 26, 2017
a492628
regenerated library files
GerHobbelt Aug 26, 2017
26fde47
sync examples/lex.l with the real deal in lex-parser module for an up…
GerHobbelt Aug 27, 2017
4a4c20c
moving towards public 'scoped package' releases as per https://docs.n…
GerHobbelt Aug 27, 2017
e1aa212
patched all `require()` statements to match the 'scoped package' depe…
GerHobbelt Aug 27, 2017
b4ef876
added `make publish' target to publish all jison modules to NPM at once.
GerHobbelt Aug 27, 2017
b0f5dd9
bumped build revision
GerHobbelt Aug 27, 2017
2ea34ca
!@#$%^&* forgot one more require to patch for the 'scoped packages' t…
GerHobbelt Aug 27, 2017
3b65fd1
added `make npm-update` target to run the npmu/ncu npm utility across…
GerHobbelt Aug 27, 2017
4eac545
bumped build revision before we produce another release.
GerHobbelt Aug 27, 2017
c135382
bumped build revision
GerHobbelt Aug 27, 2017
b70d30d
updated NPM packages
GerHobbelt Aug 27, 2017
058cfcd
locking down intermediate development stage
GerHobbelt Sep 1, 2017
1bd7467
- testing `prettier` as a recast alternative
GerHobbelt Sep 3, 2017
c431fc0
- point `prettier` at the NPM package `@gerhobbelt/prettier-miscellan…
GerHobbelt Sep 4, 2017
f9ab3f0
fix typos and use console.log instead of Jison.print (cyclic dependen…
GerHobbelt Sep 5, 2017
921a675
updated NPM packages
GerHobbelt Sep 5, 2017
c4a41bc
- minimal simplification of the lexer performAction interface.
GerHobbelt Sep 10, 2017
2c34420
filter out the new jison export options so the don't pollute the gene…
GerHobbelt Sep 10, 2017
eb715bd
- synced `mkStdOptions()` API with the same code in jison itself
GerHobbelt Sep 11, 2017
18f59ec
added example lex grammar to test `%include` operations
GerHobbelt Sep 11, 2017
9d3ed0b
migrating the very useful `prettyPrintRange` to becoming a lexer API
GerHobbelt Sep 11, 2017
3a99319
migrating the very useful `prettyPrintRange` to becoming a lexer API:…
GerHobbelt Sep 11, 2017
609774d
jison having modules is still a bloody nuisance when you introduce fe…
GerHobbelt Sep 12, 2017
74e79ef
bumped build revision
GerHobbelt Sep 12, 2017
993bce5
updated NPM packages
GerHobbelt Sep 12, 2017
50e3e48
bumped build revision
GerHobbelt Sep 12, 2017
2fcc8d9
updated NPM packages
GerHobbelt Sep 12, 2017
f3fbbb5
updated NPM packages
GerHobbelt Sep 24, 2017
5e5bbc2
updated NPM packages
GerHobbelt Sep 24, 2017
be63c6c
bumped build revision
GerHobbelt Sep 24, 2017
e94ee82
updated NPM packages
GerHobbelt Sep 24, 2017
9642d8c
bumped build revision
GerHobbelt Sep 24, 2017
49ab222
updated NPM packages
GerHobbelt Sep 24, 2017
1b48a59
corrected the copyright in the license files (now correctly attributi…
GerHobbelt Sep 29, 2017
c77f4ab
code refactoring: migrate to using the common library json-helpers-li…
GerHobbelt Sep 29, 2017
1f36968
a la jison itself: introduce babel for we want to be able to write ES…
GerHobbelt Sep 29, 2017
7f14814
- tightening the test rig: it turns out you must spec `--check-leaks`…
GerHobbelt Sep 29, 2017
b3f1e9e
make sure we use the bleeding edge jison+tools collective for testing…
GerHobbelt Sep 29, 2017
f7a4da2
updated NPM packages, in particular @gerhobbelt/recast, which had a g…
GerHobbelt Oct 3, 2017
c84cbd3
add missing example/test file
GerHobbelt Oct 3, 2017
403a2eb
moved the `dquote()` function to the jison-helpers-lib module as it's…
GerHobbelt Oct 3, 2017
87dc6b0
jison-lex now uses bleeding edge @gerhobbelt/recast::prettyPrint rath…
GerHobbelt Oct 3, 2017
99f0542
- remove buggy/incomplete `pushInput()` API; replace it with the new …
GerHobbelt Oct 12, 2017
e9ec718
tiny comment formatting tweak
GerHobbelt Oct 12, 2017
1fe7b90
updated NPM packages + moved babel to dev dependencies as it is only …
GerHobbelt Oct 12, 2017
ef93889
- fix (provisionally) for ES6 export: the `lex()` API was missing
GerHobbelt Oct 12, 2017
1a6c128
migrate cli.js to ES6: as rollup has trouble loading package.json we'…
GerHobbelt Oct 12, 2017
776de81
migrating regexp-set-management.js to ES6
GerHobbelt Oct 12, 2017
22c60f2
migrating regexp-lexer.js to ES6
GerHobbelt Oct 12, 2017
2749428
augment regexp-lexer to also check/validate the `%option xregexp` usa…
GerHobbelt Oct 12, 2017
994389a
HACK/FIX: rollup erases the content of the `fake()` function containe…
GerHobbelt Oct 12, 2017
0ee83e2
add the config files and make commands to compile ES6 generator code …
GerHobbelt Oct 12, 2017
85aa998
include the generated DIST library files.
GerHobbelt Oct 12, 2017
2bfd7f0
fix pointer to binary/CLI file
GerHobbelt Oct 12, 2017
fa0366c
fix: node/cli hashbang prelude patcher build utility: no crashing no …
GerHobbelt Oct 12, 2017
6251b00
rebuilt library files
GerHobbelt Oct 12, 2017
89b9124
remove superfluous variable declarations which were uncovered through…
GerHobbelt Oct 13, 2017
96c7298
sync changes with jison monorepo: corrections and augmentations for t…
GerHobbelt Oct 13, 2017
ea98e67
sync with jison monorepo changes: updated version and npm-ignore deve…
GerHobbelt Oct 13, 2017
0fc0154
synchronized with monorepo JISON
GerHobbelt Oct 15, 2017
ad09f62
updated NPM packages
GerHobbelt Oct 15, 2017
fba8c83
updated NPM packages and regenerated library files
GerHobbelt Oct 15, 2017
7ddc6f3
added deprecation/secondary-source notice to README
GerHobbelt Oct 15, 2017
7b208ce
sync README
GerHobbelt Oct 15, 2017
3e2d58b
prevent npm publish from succeeding (that would be VERY undesirable a…
GerHobbelt Oct 15, 2017
06090c0
all rollup.config.js files should define the same rollup process wher…
GerHobbelt Oct 15, 2017
32e6a30
removed dangerous `make` targets & rebuilt library files
GerHobbelt Oct 15, 2017
3251d59
`make everything`
GerHobbelt Oct 15, 2017
e7975e9
bumped build revision
GerHobbelt Oct 15, 2017
0e807ea
sync
GerHobbelt Oct 16, 2017
24f37da
sync + added/updated badges for all jison modules in their related RE…
GerHobbelt Oct 23, 2017
fd08b55
bumped build revision + sync
GerHobbelt Oct 23, 2017
25d92a2
obsoleted. point at the jison monorepo.
GerHobbelt Oct 24, 2017
5ca5e0f
sync incl. README fix
GerHobbelt Oct 27, 2017
cf85210
reference the correct npm package to show the active version
GerHobbelt Dec 13, 2017
495347c
update mention how to install and how to get at the API
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.DS_Store
node_modules/
npm-debug.log

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

# example output
examples/output/

/gcc-externs.js
16 changes: 16 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store
node_modules/
npm-debug.log

# Editor backup files
*.bak
*~

# scratch space
/tmp/

# Ignore build/publish scripts, etc.
Makefile

# 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.
170 changes: 170 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@

LEX = node ./dist/cli-cjs-es5.js

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




all: build test examples

prep: npm-install

npm-install:
npm install

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

build:
node __patch_version_in_js.js
node __patch_lexer_kernel_in_js.js
-mkdir -p dist
$(ROLLUP) -c
$(BABEL) dist/regexp-lexer-cjs.js -o dist/regexp-lexer-cjs-es5.js
$(BABEL) dist/regexp-lexer-umd.js -o dist/regexp-lexer-umd-es5.js
$(ROLLUP) -c rollup.config-cli.js
$(BABEL) dist/cli-cjs.js -o dist/cli-cjs-es5.js
$(BABEL) dist/cli-umd.js -o dist/cli-umd-es5.js
node __patch_nodebang_in_js.js

test:
$(MOCHA) --timeout 18000 --check-leaks --globals assert tests/

examples: \
example-include \
example-lex \
examples_basic2_lex \
examples_basic_lex \
examples_c99 \
examples_ccalc_lex \
examples_classy \
examples_codegen_feature_tester_base \
examples_comments \
examples_compiled_calc_parse \
examples_faking \
examples_floop \
examples_handlebars \
examples_issue_url_lexing \
examples_issue_x1 \
examples_issue_x2 \
examples_lex_grammar \
examples_lexer_comm_debug \
examples_pascal \
examples_regex \
examples_semwhitespace \
examples_tikiwikiparser \
examples_unicode2 \
examples_unicode \
examples_with_custom_lexer \
examples_with_includes

example-lex:
$(LEX) examples/lex.l -o examples/output/ -x

example-include:
$(LEX) examples/with-includes.test.lex -o examples/output/ -x

examples_basic2_lex:
$(LEX) examples/basic2_lex.jison -o examples/output/ -x

examples_basic_lex:
$(LEX) examples/basic_lex.jison -o examples/output/ -x

examples_c99:
$(LEX) examples/c99.l -o examples/output/ -x

examples_ccalc_lex:
$(LEX) examples/ccalc-lex.l -o examples/output/ -x

examples_classy:
$(LEX) examples/classy.jisonlex -o examples/output/ -x

examples_codegen_feature_tester_base:
$(LEX) examples/codegen-feature-tester-base.jison -o examples/output/ -x

examples_comments:
$(LEX) examples/comments.jison -o examples/output/ -x

examples_compiled_calc_parse:
$(LEX) examples/compiled_calc_parse.jison -o examples/output/ -x

examples_faking:
$(LEX) examples/faking-multiple-start-rules-alt.jison -o examples/output/ -x

examples_floop:
$(LEX) examples/floop.l -o examples/output/ -x

examples_handlebars:
$(LEX) examples/handlebars.jison.l -o examples/output/ -x

examples_issue_x1:
$(LEX) examples/issue-19-jison_lex-fixed.jison -o examples/output/ -x

examples_issue_x2:
$(LEX) examples/issue-19-jison_lex.jison -o examples/output/ -x

examples_issue_url_lexing:
$(LEX) examples/issue-357-url-lexing.jison -o examples/output/ -x

examples_lex_grammar:
$(LEX) examples/lex_grammar.jisonlex -o examples/output/ -x

examples_lexer_comm_debug:
$(LEX) examples/parser-to-lexer-communication-test-w-debug.jison -o examples/output/ -x

examples_pascal:
$(LEX) examples/pascal.l -o examples/output/ -x

examples_regex:
$(LEX) examples/regex.jison -o examples/output/ -x

examples_semwhitespace:
$(LEX) examples/semwhitespace_lex.jison -o examples/output/ -x

examples_tikiwikiparser:
$(LEX) examples/tikiwikiparser.jison -o examples/output/ -x

examples_unicode:
$(LEX) examples/unicode.jison -o examples/output/ -x

examples_unicode2:
$(LEX) examples/unicode2.jison -o examples/output/ -x

examples_with_includes:
$(LEX) examples/with-includes.jison -o examples/output/ -x

examples_with_custom_lexer:
$(LEX) examples/with_custom_lexer.jison -o examples/output/ -x


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

git-tag:

publish:
npm run pub






clean:
-rm -rf dist/
-rm -rf node_modules/
-rm -f package-lock.json
-rm -rf examples/output/

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





.PHONY: all prep npm-install build test examples clean superclean bump git-tag publish example-lex example-include examples_basic2_lex examples_basic_lex examples_c99 examples_ccalc_lex examples_classy examples_codegen_feature_tester_base examples_comments examples_compiled_calc_parse examples_faking examples_floop examples_handlebars examples_issue_url_lexing examples_issue_x1 examples_issue_x2 examples_lex_grammar examples_lexer_comm_debug examples_pascal examples_regex examples_semwhitespace examples_tikiwikiparser examples_unicode2 examples_unicode examples_with_custom_lexer examples_with_includes

Loading