Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We do this at work, but for pascal. Most algol-like languages can quite easily be converted straight away into sexpr. I just defined a neat little subset to begin with and mangled the rest in there. We generate a _lot_ of code using a guile/pascal macro system, using guile's syntax-case to destructure the macros and turning them into proper pascal.

It was really just a prototype at first. I was going to have a more pascal-like syntax in the end, but the prototype was fast enough, and manually parsing was more trouble than it was worth.

So, we don't write all of our code in sexprs, but have a preprocessor (PPP - the pascal pre-processor) that reads a sexpr version of pascal and generates code accordingly.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: