Skip to content

fabrv/js-brasm

Repository files navigation

Brasm

Brasm is one more compiler.

Usage

  1. Clone the repo
git clone https://github.com/fabrv/js-brasm.git
cd js-brasm
  1. Install dependencies
npm i
  1. Start program
node -r esm index.js <filename> [options]

Options:

Option Description
--o <output file name> Sets the file where the compiler will output.
--target <stage> Runs up to a stages can be scan, parse, ast, semantic, irt, codegen.
--opt <optimzation stage> Sets the stage of optimization; constant, algebraic.

Or just run npm start for a setup wizard.

Config files

  1. regex/tokensRegex.json, includes all the tokens in Regex
  2. regex/grammar.json, includes the grammar rules

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published