Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Simple-Compiler

Simple Compiler written in Pascal (Currently outputs 68000 asm)

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

text
Following the "LET'S BUILD A COMPILER!" tutorial by Jack W. Crenshaw, Ph.D.

Currently Pascal based compiler which outputs 68000 assembler.

Deviation from tutorial:
Unary Minus - Handled in factor which allowed for simpler asm output.
Whitespace - Handled differently (large change). Generally ignored but can break
             up identifiers which will cause a compiler error.
Error Message - Added a position counter to point to the error in the code when
                the code doesn't compile.

Future goals:
* Actually finish it
* Convert to x86 asm
* Might convert compiler to new language (bootstrap it?)