4 ms·
The Kaleidoscope language reminds me of the hoc language. In Chapter 8 of the book "The Unix Programming Environment", Brian Kernighan and Rob Pike used hoc as
by cygwin98 15y ago
The Kaleidoscope language reminds me of the hoc language. In Chapter 8 of the book "The Unix Programming Environment", Brian Kernighan and Rob Pike used hoc as an example to demonstrate how to use yacc, lex, and make to develop a compiler.
In hoc, you have control flows and can define your own functions. Unfortunately, hoc lost the battle to bc, that's why it's rarely known in the Unix community.