1.0.2 • Published 2 months ago

@kiliankgr/egg-parser-kilian-kiliankgr-alu0101222325 v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Open in Codespaces

Egg Parser

Egg Language utility. Translates egg programs into ASTs.

Installation

npm install git@github.com:kiliankgr/egg-parser-kilian-kiliankgr-alu0101222325.git

Usage from code:

const { parseFromFile } = require('@kiliankgr/egg-parser-kilian-kiliankgr-alu0101222325')
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

alu0101222325 (name Kilian González Rodriguez) - GitHub Profile

Tests

npm run test

Version History

1.0.0 Initial Release 1.0.1 Added module documentation 1.0.2 Minor fixes

1.0.2

2 months ago

1.0.1

2 months ago