Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
ColorForth
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Programming language}} {{Refimprove|article|date=August 2007}} {{lowercase|title=colorForth}} {{ infobox programming language | name = colorForth | logo = | paradigm = [[Procedural programming|Procedural]], [[stack-oriented programming language|stack-oriented]] | year = 1990s | designer = [[Charles H. Moore]] | developer = [[Charles H. Moore]] | latest_release_version = {{start date and age|2001|7|31}}<ref name="status">{{cite web | url=https://colorforth.github.io/status.html | title=colorForth Status | date=September 2002 | archiveurl=https://web.archive.org/web/20160310135832/http://colorforth.com/status.html | archivedate=2016-03-10 | url-status=dead }}</ref> | typing = Typeless | dialects = | implementations = | influenced_by = [[Forth (programming language)|Forth]] | influenced = | license = [[Public domain]]<ref name=status/> | website = Archived at {{URL|https://colorforth.github.io/}} | file_ext = }} '''colorForth''' is a [[programming language]] from the [[Forth (programming language)|Forth]] language's creator, [[Charles H. Moore]], developed in the 1990s. The language combines elements of Moore's earlier Forth systems and adds color as a way of indicating how words should be interpreted. Program text is tokenized as it is edited; the compiler operates on the tokenized form, so there is less work at compile time. colorForth is an idiosyncratic programming environment: the colors simplify Forth's semantics, speed compiling, and are said to aid Moore's own poor eyesight: colorForth uses different colors in its source code (replacing some of the punctuation in standard Forth) to determine how different words are treated. colorForth was originally developed as the scripting language for Moore's own [[VLSI]] [[CAD]] program, OKAD,<ref>{{cite web | url=http://www.ultratechnology.com/okad2.htm | title=OKAD II (Oh CAD Two) | date=2001-07-01 | accessdate=2017-06-08}}</ref> with which he develops custom Forth processors. As the language gained utility, he rewrote his CAD program in it, spruced up the environment, and released it to the public. It has since gained a small following, spurred much debate in the Forth community, and sprung offshoots for other processors and operating environments. The language's roots are closer to the Forth machine languages Moore develops for his processors than to the mainstream standardized Forths in more widespread use. The language comes with its own tiny (63 KB) [[operating system]]. Practically everything is stored as source code and compiled when needed. The current{{when?|date=December 2023}} colorForth environment is limited to running on [[Pentium compatible processor|Pentium]]-grade PCs with limited support for lowest-common-denominator motherboards, AGP video, disk, and network hardware. Coloring in colorForth has semantic meaning. Red words start a definition, and green words are compiled into the current definition. Thus, <span style="color:red;">color</span><span style="color:green;">Forth</span> would be written in standard Forth as : color forth ; Yellow words are executed. The transition from green to yellow and back again can be used while defining words, to transition between compiling words into the current definition, executing words immediately (manipulating the data stack during compilation), and back again (adding the top of the data stack to the current definition){{snd}} in other words, precomputing a value during compilation (a functionality that other languages use macros or optimizing compilers for).<ref name="wordformat">{{cite web | url=http://www.colorforth.com/parsed.html | title=PreParsed Word Format | website = colorforth.com | date=December 2001 | archiveurl=https://web.archive.org/web/20110906081208/http://www.colorforth.com/parsed.html | archivedate=2011-09-06 | url-status=dead }}</ref> Moore developed Forth in the early 1970s and created a series of implementations of the language. In the 1980s he diverged from the standardization of the language, instead continuing to evolve it. He developed a series of Forth-like languages, each extreme in its simplicity: Machine Forth, OKAD, and colorForth. Moore has stated that color is only one option for displaying the language.{{Citation needed|date=October 2019}} One of Moore's papers{{which?|date=December 2023}} on colorForth was printed in black and white but used italics and other typographical conventions to present source code.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)