Egg Language utility. Translates egg programs into ASTs with extension json.
npm install git@github.com:ULL-ESIT-PL-2122/egg-parser-Raul-AlvarezPerez-alu010141136.git
const { parseFromFile } = require('@ULL-ESIT-PL-2122/egg-parser-Raul-AlvarezPerez-alu010141136')
const example_file = "./testFile.txt"
console.log("Original Code: \n", example_code);
console.log("AST generated from code: \n", parseFromFile(example_code));
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
You can check various examples in the examples/ directory.
alu0101471136 (Raúl Álvarez Pérez) - GitHub Profile
npm run test
1.0.0 Initial Release 1.0.1 Added module documentation 1.0.2 Minor fixes