A silly project to compile C++11 in JavaScript written by someone with no compilers knowledge.
jscpp will consist of 5 core components:
- Grammar and parser actions for a simplified C++-like language that aims to implement the C++11 specification but will undoubtedly remain woefully incomplete.
- Parser for the jscpp grammar. Generated from the grammar and parser actions using jison.
- Compiler. Processes the parsed structure to create a program representation. Mostly unimplemented.
- Runner. Implements the compiler's output on a VM. Unimplemented.
- VM. Simple virtual machine with basic instructions. Mostly unimplemented.
# Install:
npm install
# Generate parser:
make
# Run tests:
make test
# Build compiled output (for running in-browser):
make closure