antlr/runtime/JavaScript
Camilo Roca 4a7820aa4b refactored comments to be jsdoc compatible 2020-02-23 13:08:39 +01:00
..
src/antlr4 refactored comments to be jsdoc compatible 2020-02-23 13:08:39 +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 adapted antlr4 js to use webpack for browser publishing 2020-02-07 13:57:20 +01:00
package.json adapted antlr4 js to use webpack for browser publishing 2020-02-07 13:57:20 +01:00
webpack.config.js adapted antlr4 js to use webpack for browser publishing 2020-02-07 13:57:20 +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!