{"_id":"@alu0101408248/egg-lang","_rev":"1-7a62d3ec46f0c33e09158454e89b4b03","name":"@alu0101408248/egg-lang","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alu0101408248/egg-lang","version":"1.0.0","description":"Lab for language processors","main":"grammar.js","bin":{"eggc":"bin/eggc.js"},"scripts":{"test":"npm run build; nyc --reporter=lcov --reporter=text-summary --report-dir=docs/coverage -o docs mocha","doc":"npm run build; jsdoc ./index.js ./src/ -d docs/api -c jsdoc.json","docs":"npx c8 --reporter=html --reporter=text --report-dir ./docs/cov mocha","srcdoc":"jsdoc ./src/* -d ./docs/src","fun-fun":"npm run compile-funfun && evm examples/fun-fun.json","dodef":"npm run compile-dodef && evm examples/dodefsum.json","compile-syntax":"npm run build && node bin/eggc.js examples/syntax.egg","compile-funfun":"npm run build && node bin/eggc.js examples/fun-fun.egg","compile-dodef":"npm run build && node bin/eggc.js examples/dodefsum.egg","build":"nearleyc src/egg.ne -o src/grammar.js"},"keywords":["ULL","parsing","AST"],"author":{"name":"Thomas Edward Bradley","email":"alu0101408248@ull.edu.es","url":"https://github.com/Kalko5000"},"license":"ISC","dependencies":{"@crguezl/eloquentjsegg":"^1.2.6","commander":"^9.0.0","moo-ignore":"^2.5.1","nearley":"^2.20.1"},"devDependencies":{"@types/mocha":"^10.0.6","chai":"^4.3.6","jsdoc":"^3.6.10","mocha":"^9.2.2","nyc":"^15.1.0","tui-jsdoc-template":"^1.2.2"},"_id":"@alu0101408248/egg-lang@1.0.0","gitHead":"e8a7a8815cee74daebb053c861f2578eb2a48a9e","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-HK/r4JTZpr2My0SRZgDaQ+xOlMlikx6NtzMuWBMXcvuesF5jyZ6a7OsyHRu+V7YA8bwXvD75mGrC0Luoh5wGXQ==","shasum":"19fe8cab57281e6aec18e2fe98b67ff16436a47b","tarball":"https://registry.npmjs.org/@alu0101408248/egg-lang/-/egg-lang-1.0.0.tgz","fileCount":84,"unpackedSize":717391,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD8pz4OAjz+aEddszB9hBEI7Zrtv255iQa+Cm/ljmHeQIhAI/dR2GogCkumNXpSV0vmYe2wkpbfUon3KMc7aMgz56Y"}]},"_npmUser":{"name":"alu0101408248","email":"alu0101408248@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101408248","email":"alu0101408248@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-lang_1.0.0_1710403632827_0.9045644777025967"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alu0101408248/egg-lang","version":"1.0.1","description":"Lab for language processors","main":"grammar.js","bin":{"eggc":"bin/eggc.js"},"scripts":{"test":"npm run build; nyc --reporter=lcov --reporter=text-summary --report-dir=docs/coverage -o docs mocha","doc":"npm run build; jsdoc ./index.js ./src/ -d docs/api -c jsdoc.json","docs":"npx c8 --reporter=html --reporter=text --report-dir ./docs/cov mocha","srcdoc":"jsdoc ./src/* -d ./docs/src","fun-fun":"npm run compile-funfun && evm examples/fun-fun.json","dodef":"npm run compile-dodef && evm examples/dodefsum.json","compile-syntax":"npm run build && node bin/eggc.js examples/syntax.egg","compile-funfun":"npm run build && node bin/eggc.js examples/fun-fun.egg","compile-dodef":"npm run build && node bin/eggc.js examples/dodefsum.egg","build":"nearleyc src/egg.ne -o src/grammar.js"},"keywords":["ULL","parsing","AST"],"author":{"name":"Thomas Edward Bradley","email":"alu0101408248@ull.edu.es","url":"https://github.com/Kalko5000"},"license":"ISC","dependencies":{"@crguezl/eloquentjsegg":"^1.2.6","commander":"^9.0.0","moo-ignore":"^2.5.1","nearley":"^2.20.1"},"devDependencies":{"@types/mocha":"^10.0.6","chai":"^4.3.6","jsdoc":"^3.6.10","mocha":"^9.2.2","nyc":"^15.1.0","tui-jsdoc-template":"^1.2.2"},"_id":"@alu0101408248/egg-lang@1.0.1","gitHead":"e8a7a8815cee74daebb053c861f2578eb2a48a9e","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-0Qz/BOkJnNzRNU1pfvukiuNMrW+ZKXSrRyoUf2kdfVUQqv1yae6eGXVi3OI45tu4jUmPcLimIi4nGtDhG/1juw==","shasum":"c8193b15e5f8d3d876c447737639075f645589f6","tarball":"https://registry.npmjs.org/@alu0101408248/egg-lang/-/egg-lang-1.0.1.tgz","fileCount":84,"unpackedSize":717394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe/ZaSRbPjamfyv0fhvevT+6fl5ZxceKusGxCNVIYyUgIhALTfzsyZPYdgPwT96hbIYpGLGqXvYu5/1qHLA/c4mapU"}]},"_npmUser":{"name":"alu0101408248","email":"alu0101408248@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101408248","email":"alu0101408248@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-lang_1.0.1_1710404222742_0.8718882881784278"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-14T08:07:12.703Z","1.0.0":"2024-03-14T08:07:13.082Z","modified":"2024-03-14T08:17:03.368Z","1.0.1":"2024-03-14T08:17:02.915Z"},"maintainers":[{"name":"alu0101408248","email":"alu0101408248@ull.edu.es"}],"description":"Lab for language processors","keywords":["ULL","parsing","AST"],"author":{"name":"Thomas Edward Bradley","email":"alu0101408248@ull.edu.es","url":"https://github.com/Kalko5000"},"license":"ISC","readme":"[![Open in Codespaces](https://classroom.github.com/assets/launch-codespace-7f7980b617ed060a017424585567c406b6ee15c891e84e1186181d67ecf80aa0.svg)](https://classroom.github.com/open-in-codespaces?assignment_repo_id=14287320)\n## Egg Parser\n\nEgg Language utility. Translates egg programs into ASTs.\n\n## Installation\n\n```\nnpm install git@github.com:ULL-ESIT-PL-2324/egg-parser-thomas_edward-bradley-alu0101408248.git\n```\n\n## Usage from code:\n\n```javascript\nconst { parseFromFile } = require('@alu0101408248/egg-lang')\nconst example_file = \"./testFile.txt\"\n\nconsole.log(\"Original Code: \\n\", example_code);\nconsole.log(\"AST generated from code: \\n\", parseFromFile(example_code));\n```\n\n## Usage as executable:\n\nAn input file must be specified. You also may or may not specify an output file. If not given, it will default to the original file's name, with a .json extension.\n\n```\nnpx eggc input_file --o output_file\n```\n\n## Examples\n\nYou can check various examples in the examples/ directory.\n\n## Author\n\nalu0101408248 (name: Thomas Edward Bradley) - [GitHub Profile](https://github.com/Kalko5000)\n\n## Tests\n\n```\nnpm run test\n```\n\n## Version History\n\n1.0.0 Initial Release  \n1.0.1 Small Documentation Change\n\n## Usage of AI\n\nAI was used in order to understand how to properly use nearley in `index.js` as I couldn't find information on the correct \nworkflow online, however it was just used as a guideline for this purpose as I then wrote the final code myself.  \n  \nI declare that I will not use AI to cheat the practical exercises and copy code blocks.","readmeFilename":"README.md"}