Pascal parser in js. The goal is to be able to run simple Turbo Pascal demos made in the 90s that depend on asm, but otherwise very simple pascal.
- Programs
- Units
- Comments
- Invoke Procedures
-
var
parameters - Compound
-
for
-
if
- assignment
-
while
-
repeat
-
with
- Recursive calls
- Integer literals
- String literals
- Variables
- Parenthesis
- Boolean operators
- Arithmetic operators
- Comparisions
- Function calls
- Pointers
- Procedures
- Functions
- Variabes
- Constants
- Type aliases
- Records
- Arrays
- Mix declaration order
- Real
- Type checking
- Nested arrays/records
- Parse keywords
- mov
- int
- loop
- Conditionals
- `WriteLn´
- VGA emulation
- Palette
Samuel Carlsson [email protected]