antlr4ng
Version:
Alternative JavaScript/TypeScript runtime for ANTLR4
73 lines (72 loc) • 3.1 kB
JSON
{
"name": "antlr4ng",
"version": "3.0.16",
"type": "module",
"description": "Alternative JavaScript/TypeScript runtime for ANTLR4",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/mike-lischke/antlr4ng.git"
},
"keywords": [
"lexer",
"parser",
"antlr",
"antlr4",
"grammar",
"TypeScript"
],
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/mike-lischke/antlr4ng/issues"
},
"homepage": "https://github.com/mike-lischke/antlr4ng",
"sideEffects": false,
"devDependencies": {
"@mike-lischke/antlr-tgen": "1.0.8",
"@types/node": "20.14.9",
"@types/unicode-properties": "1.3.2",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitest/coverage-v8": "3.0.6",
"antlr-ng": "1.0.4",
"esbuild": "0.23.0",
"eslint": "8.57.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.10.2",
"eslint-plugin-prefer-arrow": "1.2.3",
"ts-node": "10.9.2",
"typescript": "5.7.3",
"unicode-properties": "1.4.1",
"vitest": "3.0.6"
},
"scripts": {
"prepublishOnly": "npm run build && npm run test",
"build": "tsc && npm run build-cjs && npm run build-mjs",
"build-with-maps": "tsc && npm run build-mjs -- --sourcemap",
"build-and-test": "npm run build && npm run test",
"test": "vitest run --no-watch --no-coverage",
"full-test": "npm run test && npm run run-benchmarks && npm run time-lexer-speed",
"run-benchmarks": "node --no-warnings --experimental-vm-modules --loader ts-node/esm tests/benchmarks/run-benchmarks.ts",
"time-lexer-speed": "node --no-warnings --experimental-vm-modules --loader ts-node/esm tests/api/perf/TimeLexerSpeed.ts",
"generate-test-parsers": "./build/generate-test-parsers.sh",
"generate-runtime-tests": "antlr-tgen --config tests/fixtures/config.json",
"build-bundle": "esbuild ./src/index.js --main-fields=module,main --bundle --target=esnext --keep-names",
"build-mjs": "npm run build-bundle -- --outfile=dist/index.mjs --format=esm",
"build-cjs": "npm run build-bundle -- --outfile=dist/index.cjs --format=cjs",
"generate-xpath-lexer": "antlr-ng -Dlanguage=TypeScript --exact-output-dir -o src/tree/xpath/generated src/tree/xpath/XPathLexer.g4",
"profile benchmarks": "node --no-warnings --experimental-vm-modules --prof --loader ts-node/esm tests/benchmarks/run-benchmarks.ts",
"process profile tick file": " node --prof-process isolate-0x140008000-94064-v8.log > processed.txt"
},
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
},
"browserslist": [
"defaults and fully supports es6-module",
"maintained node versions"
]
}