Wrote a PL/0 interpreter (in a different type of .pl, funnily enough). Currently...
pat @pat@patpatpat.xyz
Wrote a PL/0 interpreter (in a different type of .pl, funnily enough). Currently doesn't have full lexical scoping, but I'll get on it at some point. Its quite an neat language, although the syntax is pretty odd
I've been wanting to learn how to actually use a recursive descent parser for ages, and this seemed like a nice example! Took me some brain power to figure out how to convert the parser given on Wikipedia into something that produces code, rather than just being a recogniser
I think I'll try doing the same thing for POP2000 at some point :)
https://patpatpat.xyz/data/pl0/
I've been wanting to learn how to actually use a recursive descent parser for ages, and this seemed like a nice example! Took me some brain power to figure out how to convert the parser given on Wikipedia into something that produces code, rather than just being a recogniser
I think I'll try doing the same thing for POP2000 at some point :)
https://patpatpat.xyz/data/pl0/