antlr/runtime/JavaScript
Camilo Roca e7b935e7e2 refactored ATN to be an es6 class 2020-03-06 18:10:34 +01:00
..
src/antlr4 refactored ATN to be an es6 class 2020-03-06 18:10:34 +01: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 browser support increased with babel transformation 2020-02-23 19:09:26 +01:00
package.json browser support increased with babel transformation 2020-02-23 19:09:26 +01: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!