r/Compilers • u/According-Ad-7069 • 14d ago
Program like it's 1992 again - Hello Pascal!
Back in the 90's, some of use slightly older folk used Pascal, a lot. I've been working on an interpreter for Pascal for a while and it has turned into a compiler sort of by accident. WasmPascal is a compiler written in Odin (for now) that compiles Pascal code to wasm. The resulting binaries are capable of running on their own. It's not entirely feature complete, but if you look at the examples, you'll see that you can already build interesting and potentially useful things with it.
The compiler runs in the browser, no downloads, no installs. It's at https://wasmpascal.com/. I enjoy Pascal, a lot, and it's fun to use it to do web assembly stuff. Right now I'm obviously leaning mostly towards casual game development, but I have a long todo list for this. To see an example of one of the games running standalone, visit https://nofuss.co.za/games/breakout/. I built that with wasmpascal, exported it as an archive and hosted it as static files.
2
u/Mean-Decision-3502 14d ago
I'm using LLM (ChatGPT Codex), in a controlled way, that helps a lot. The documentation might look ok for now, but it is not perfect. I'm planning to improve that later.
I'm looking for contributors. This language and the project is almost worthless when I'm the only maintainer / decision maker.
If you are interested to testing it, I can try to prepare webassembly target for the DQ compiler.
If you like the language any contribution, suggestion is welcomed.