Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 814 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 814 Bytes

Kompailer

This is my Compiler written in TypeScript with frontend HTML. Compiles custom language (see grammar) to modified set of 6502 op codes. See http://www.labouseur.com/courses/compilers/ for details.

Setup TypeScript/Gulp

  1. Install npm, if you don't already have it
  2. npm install -g typescript to get the TypeScript Compiler
  3. npm install -g gulp to get the Gulp Task Runner
  4. npm install --save-dev -g gulp-tsc to get the Gulp TypeScript plugin

Compiling

  1. Follow the commands in the c file (Mac) or the compile.bat (Windows) file or
  2. Run gulp (see workflow below)

Running the Compiler

  1. Open the index.html in the browser.

Configured with Gulp to autocompile TypeScript