antlr/runtime/JavaScript
Eric Vergnaud 215d57abff try fix travis 2020-10-03 19:57:57 +08:00
..
src/antlr4 fix circular dependency 2020-10-03 17:18:25 +08:00
.babelrc browser support increased with babel transformation 2020-02-23 19:09:26 +01:00
.gitignore adapted antlr4 js to use webpack for browser publishing 2020-02-07 13:57:20 +01:00
.project get .project into position 2015-06-30 11:26:45 -07:00
README.md fix: npm build is not a valid command 2020-02-08 15:14:10 +01:00
package-lock.json updated by webpack 2020-10-03 14:06:27 +08:00
package.json try fix travis 2020-10-03 19:57:57 +08:00
webpack.config.js browser support increased with babel transformation 2020-02-23 19:09:26 +01:00

README.md

JavaScript target for ANTLR 4

JavaScript runtime libraries for ANTLR 4

This runtime is available through npm. The package name is 'antlr4'.

This runtime has been tested in Node.js, Safari, Firefox, Chrome and IE.

See www.antlr.org for more information on ANTLR

See Javascript Target for more information on using ANTLR in JavaScript

publishing

The JavaScript itself is tested using npm, so assumption is npm is already installed. The current npm version used is 3.10.9.

to npm

The publishing itself relies on the information in package.json. To publish run npm login from Terminal, then npm publish antlr4

That's it!

to browser

To publish antlr4 for browser usage you need to bundle it into a single file with npm run build. This will create dist/antlr4.js file. Upload it to your favourite server.

That's it!