Skip to content

Commit

Permalink
Initial check-in
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Sep 7, 2023
0 parents commit 555285c
Show file tree
Hide file tree
Showing 265 changed files with 25,312 additions and 0 deletions.
627 changes: 627 additions & 0 deletions .eslintrc.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
package
*.tgz
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@@ -0,0 +1,10 @@
spec
webpack.config.js
tsconfig.json
src/**/*.js

.vscode
.babelrc
.c8rc.json
.eslintignore
.eslintrc.json
.project
cspell.json
3 changes: 3 additions & 0 deletions .vscode/numbered-bookmarks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"files": []
}
17 changes: 17 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# JavaScript + TypeScript Target Runtime for ANTLR 4

[![npm version](https://img.shields.io/npm/v/antlr4)](https://www.npmjs.com/package/antlr4)
[![Badge showing the supported LTS versions of Node.JS in the latest NPM release](https://img.shields.io/node/v-lts/antlr4)](https://www.npmjs.com/package/antlr4)
[![npm type definitions](https://img.shields.io/npm/types/antlr4)](https://www.npmjs.com/package/antlr4)

This package is a fork of the official ANTLR4 JavaScript runtime, with the following changes:

- Much improved TypeScript type definitions.
- XPath implementation.
- Vocabulary implementation.
- Complete Interval implementation.
- Consistent formatting (indentation, semicolons, spaces, etc.).
- Numerous smaller fixes (`null` instead of `undefined` and others).
- Smaller node package (no test specs or other unnecessary files).

It is a drop-in replacement of the `antlr4` package, and can be used as such. For more information about ANTLR see www.antlr.org. More details about the JavaScript/TypeScript target can be found [here](https://github.com/antlr/antlr4/blob/master/doc/javascript-target.md).
22 changes: 22 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "0.2",
"ignorePaths": [
".eslintrc.json"
],
"dictionaryDefinitions": [],
"dictionaries": [],
"words": [
"ANTLR"
],
"ignoreWords": [
"AMBIG",
"Harwell",
"interp",
"localctx",
"precpred",
"recog",
"sempred",
"ttype"
],
"import": []
}
Loading

0 comments on commit 555285c

Please sign in to comment.