The 30 Minute Compiler
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
basic.js
generator.js
jsonify.js
lexer.js
parser.js
test.bas

README.md

IndyJSBasic

The 30 Minute Compiler

This is the source code from the IndyJS April 2014 meetup.

basic.js expects source code on stdin and outputs generated JavaScript to stdout.

Use shell redirection to perform an actual compilation:

node basic.js < test.bas > test.js && node test.js

Uncomment one of the jsonify lines in basic.js to watch the tokens from the lexer, and statements from the parser, respectively.