Howdy Logo
Glossary Hero image

The Howdy Glossary

Search terms in Glossary

Hoc

Hoc is a stack-based virtual machine designed for teaching purposes and implementing simple programs. It uses an expression-oriented syntax similar to that of C and is mostly used in educational environments where the principles of programming languages are being taught. Hoc programs consist of expressions separated by semicolons, with variables representing stack items and operators manipulating them. In practice, hoc has been surpassed by more modern educational tools such as Python’s REPL or websites offering interactive coding challenges.

Back