@fenic-peiteado/egg-lang

1.0.0 • Public • Published

Open in Codespaces

Egg Parser

Egg Language utility. Translates egg programs into ASTs.

Para esta practica utilizaresmo la herarmienta de generador de lexer Moo y el generador de parser Nearley. para construir nuestro lenguaje EGG segun la especificaciones de de AST

Installation

npm install git@github.com:ULL-ESIT-PL-2122/egg-parser-aluName-aluSurname-aluXXXX.git

Usage from code:

const { parseFromFile } = require('@ULL-ESIT-PL-2122/egg-parser-aluName-aluSurname-aluXXXX')
const example_file = "./testFile.txt"

console.log("Original Code: \n", example_code);
console.log("AST generated from code: \n", parseFromFile(example_code));

Usage as executable:

An 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.

npx eggc input_file --o output_file

Examples

You can check various examples in the examples/ directory.

Author

aluXXXX (name aluSurname) - GitHub Profile

Tests

npm run test

Version History

1.0.0 Initial Release 1.0.1 Added module documentation 1.0.2 Minor fixes

Readme

Keywords

Package Sidebar

Install

npm i @fenic-peiteado/egg-lang

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

717 kB

Total Files

98

Last publish

Collaborators

  • fenic-peiteado