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
TRAC (programming language)
(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!
== Example program == This is an example of a simple program that asks the user's name and exits, written in TRAC T64:<ref>[https://web.archive.org/web/20050214150205/http://tracfoundation.org/trac64/T64manual.htm The Beginner's Manual for TRAC Language (1972) (archived)] by Calvin N. Mooers.</ref> <pre> #(DS,PROG.A,( #(PS,(WHAT IS YOUR NAME? )) #(DS,NAME,##(RS)) #(PS,( GOODBYE)) ))' </pre> TRAC T84 uses a slightly different syntax and different names for its primitives. The following is a script to compute Fibonacci numbers, written in TRAC T84:<ref>[https://web.archive.org/web/20200102193613/http://www.thocp.net/software/languages/trac.html TRAC information page (archived)], at [[The History of Computing Project]], with small code sample and photo of C. M. Mooers.</ref> <pre>:(s,fibo,( :(ei,<1>, 1, 0,( :(ei,<1>, 2, 1,( :(aa, :(ri,fibo,:(as, <1>,1)),:(ri,fibo,:(as, <1>,2))) )) )) ))` :(mw,fibo)'</pre>
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)