3 ms·
It should be possible to make a COBOL-ized C with this - a language with the semantics of C (and broadly analogous syntax, mutatis mutandis) and the wordiness o
by tuatoru 6y ago
It should be possible to make a COBOL-ized C with this - a language with the semantics of C (and broadly analogous syntax, mutatis mutandis) and the wordiness of COBOL.
I wonder if it's already been done?
- innocenat 6y agoI imagine you can probably do that with C preprocessor.
- shakna 6y agoLike this? #include "evil.h" Main then displayln("Hello, World!"); end [0] https://git.sr.ht/~shakna/cnoevil3/ https://git.sr.ht/~shakna/cnoevil3/
- Turing_Machine 6y agoMany years ago a friend of mine had a hobby project to try to implement BASIC using the C preprocessor. The idea, which seemed rather cockamamie at the time, was to come up with something you could feed a BASIC program to and have it come out as a compiled executable. Nowadays, that kind of idea is everywhere, of course. I don't know if he ever got it finished (or indeed, if it's even possible in a practical sense. The C preprocessor is Turing-complete (edit: more or less, if you're allowed unlimited runs), so it's obviously theoretically possible).