- A toy Pascal Compiler I wrote for fun
- Prerequisite: C99 compiler, or cl
- Build each translation unit individually:
-
.\build.bat cl
-
- Or unity build to speed up compile time:
-
.\build.bat cl unity
-
- Prerequisite: C99 compiler, preferably gcc
- Build each translation unit individually:
-
./build.sh gcc
-
- Or unity build to speed up compile time:
-
./build.sh gcc unity
-
- Windows:
Pascal InputFile.pas OutputFile.exe - Other OSes:
./Pascal InputFile.pas OutputFile
- write, writeln (no file parameter)
- sizeof, ord
- float does not work in va arg functions like writeln
- refactor refactor refactor
- 1-character long string literals are automatically treated as char, fix this
- add goto, label, and with statement
- add set, and union (record case) types
- reconsider string as 'array[0..255] of char'
- file, text type
- for in loop
- const, var, and constref parameters
- x86, x64, ARM backend
- different calling conventions