Hoc (programming language)

hoc, an acronym for High Order Calculator, is an interpreted programming language that was used in the 1984 book The Unix Programming Environment to demonstrate how to build interpreters using Yacc. hoc was developed by Brian Kernighan and Rob Pike as a glorified interactive calculator. Its basic functionality is to evaluate floating-point numerical expressions, e.g., <span class="m">1</span><span class="o">+</span><span class="m">2</span><span class="o">*</span>sin<span class="p">(</span><span class="m">0.7</span><span class="p">)</span>. Then, variables were added, conditionals, loops, user-defined functions, simple IO, and more, using a syntax resembling C.

Author
Author
AT&T Bell Laboratories
Brian Kernighan
Author
Brian Kernighan
Author
Rob Pike
Author
Rob Pike
Comment
enhoc, an acronym for High Order Calculator, is an interpreted programming language that was used in the 1984 book The Unix Programming Environment to demonstrate how to build interpreters using Yacc. hoc was developed by Brian Kernighan and Rob Pike as a glorified interactive calculator. Its basic functionality is to evaluate floating-point numerical expressions, e.g., <span class="m">1</span><span class="o">+</span><span class="m">2</span><span class="o">*</span>sin<span class="p">(</span><span class="m">0.7</span><span class="p">)</span>. Then, variables were added, conditionals, loops, user-defined functions, simple IO, and more, using a syntax resembling C.
Computing platform
Cross-platform
Genre
Command (computing)
Genre
Command (computing)
Genre
Programming language
Genre
Programming language
Has abstract
enhoc, an acronym for High Order Calculator, is an interpreted programming language that was used in the 1984 book The Unix Programming Environment to demonstrate how to build interpreters using Yacc. hoc was developed by Brian Kernighan and Rob Pike as a glorified interactive calculator. Its basic functionality is to evaluate floating-point numerical expressions, e.g., <span class="m">1</span><span class="o">+</span><span class="m">2</span><span class="o">*</span>sin<span class="p">(</span><span class="m">0.7</span><span class="p">)</span>. Then, variables were added, conditionals, loops, user-defined functions, simple IO, and more, using a syntax resembling C. An improved hoc interpreter was included in Eighth Edition Research Unix in 1985, but it has not been generally adopted by commercial Unix systems or by Linux distributions. Instead, the earlier calculator languages dc and bc have become widespread on those systems. hoc survived and continued to evolve as part of the Plan 9 operating system. Several improved versions of Hoc were released as free software by Bell Labs and other individuals (see list below). hoc is used as the primary scripting language for the Neuron simulator.
Hypernym
Language
Is primary topic of
Hoc (programming language)
Label
enHoc (programming language)
License
enPlan 9: MIT License
License
MIT License
Link from a Wikipage to an external page
www.linuxjournal.com/%3Fq=article/5810
plan9.bell-labs.com/magic/man2html/1/hoc
www.neuron.yale.edu/neuron/static/docs/refman/hoc.html
web.archive.org/web/19991011232359/http:/netlib.bell-labs.com/~bwk/hoc.sh
nadav.harel.org.il/homepage/hoc/
plan9.bell-labs.com/sources/plan9/sys/src/cmd/hoc/
www.math.utah.edu/pub/hoc/
web.archive.org/web/20000816174822/http:/cm.bell-labs.com/who/bwk/unixprogenv.tar.gz
Link from a Wikipage to another Wikipage
AT&T Bell Laboratories
Bc programming language
Brian Kernighan
C (programming language)
Category:Free mathematics software
Category:Numerical programming languages
Category:Plan 9 commands
Category:Software calculators
Category:Unix programming tools
Command (computing)
Cross-platform
Dc (Unix)
Eighth Edition Unix
Free software
Interpreter (computing)
Linux
Lucent Public License
MIT License
Neuron (software)
Plan 9 from Bell Labs
Programming language
Research Unix
Rob Pike
The Unix Programming Environment
Unix
Yacc
Name
enhoc
Name
enhoc
OperatingSystem
Plan 9 from Bell Labs
Unix
Operating system
Plan 9 from Bell Labs
Unix
Platform
Cross-platform
ProgrammingLanguage
C (programming language)
Programming language
C (programming language)
SameAs
4muU5
Hoc (programming language)
m.02x01bv
Q5875280
Subject
Category:Free mathematics software
Category:Numerical programming languages
Category:Plan 9 commands
Category:Software calculators
Category:Unix programming tools
WasDerivedFrom
Hoc (programming language)?oldid=1096095296&ns=0
WikiPageLength
4604
Wikipage page ID
12675204
Wikipage revision ID
1096095296
WikiPageUsesTemplate
Template:Cite book
Template:Code
Template:Highlight
Template:Infobox software
Template:Lowercase title
Template:Man
Template:Plan 9 commands
Template:Start date and age