Helper functions shared among the jison repositories (jison, ebnf-parser, lex-parser, jison-lex)
From today (2017/oct/15) the jison-helpers-lib repository is obsoleted for the
jison-helpers-libpackage/codebase: the primary source is the jison monorepo's
packages/helpers-lib/directory. See also https://github.com/GerHobbelt/jison/issues/16.
(For a comparable argument, see also "Why is Babel a monorepo?")
Issues, pull requests, etc. for
jison-helpers-libshould be filed there; hence we do not accept issue reports in this secondary repository any more.
This repository will track the primary source for a while still, but be very aware that this particular repository will always be lagging behind!
npm install @gerhobbelt/jison-helpers-lib
To build the library yourself, follow the install & build directions of the monorepo.
Note about ES6/rollup usage vs. ES5
dist/library files are 'self-contained': they include all 'local imports' from within this jison monorepo in order to deliver a choice of source files for your perusal where you only need to worry about importing external dependencies (such as
As such, these
dist/files should be easier to minify and/or use in older (ES5) environments.
Iff you use
rollupor similar tools in an ES6/ES2015/ES2017 setting, then the
package.json::modulehas already been set up for you to use the original sources instead!
var helpers = require('jison-helpers-lib'); ...