Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 492 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 492 Bytes

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.