UNPKG

@lcap/nasl-parser

Version:

Take Nasl text to Nasl AST with the help of generalized parsing.

37 lines (36 loc) 1.13 kB
{ "name": "@lcap/nasl-parser", "version": "0.1.0", "description": "Take Nasl text to Nasl AST with the help of generalized parsing.", "main": "generated/index.js", "scripts": { "grammar": "nearleyc grammar/nasl.ne -o ts/nasl.ts", "build": "npm run grammar && tsc", "gen-predicate": "ts-node ts/toAST/gen-predicate.ts && cp ts/toAST/predicate.ts generated/predicate.ts && tsc generated/predicate.ts", "test-prepare": "ts-node ts/prepare-tests.ts", "test-all": "npm run test-prepare && jest --coverage", "test": "jest --coverage", "test-parse": "npm run build && ts-node ts/testParse.ts" }, "keywords": [ "frontends" ], "author": "zirun", "license": "ISC", "devDependencies": { "@babel/preset-typescript": "^7.24.1", "@jest/globals": "^29.7.0", "@types/jest": "^29.5.12", "jest": "^29.7.0", "ts-jest": "^29.1.2", "typescript": "^5.6.3" }, "dependencies": { "@lcap/nasl": "^3.11.1-beta.3", "@lcap/nasl-concepts": "^3.11.1-beta.3", "@types/nearley": "^2.11.5", "moo": "^0.5.2", "nearley": "^2.20.1", "pino-pretty": "^11.0.0" } }