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
FOIL (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!
==CAI style language== The first '''FOIL''' was a [[Computer-assisted language learning|CAI]] [[programming language|language]] developed at the [[University of Michigan]] in 1967. The acronym stood for File-Oriented Interpretive Language and it was very similar to other [[Computer-assisted language learning|CAI]] languages like [[COURSEWRITER]] and [[PILOT]]. However, it tried to make the language somewhat block-structured using whitespace which ended up making the language vaguely similar to [[BASIC]] or [[ABC (programming language)|ABC]]. ===Example=== <pre><nowiki> :START COUNT=0 TY Enter the number of times you want to repeat the statement: ACCEPT MAX=NUMBER.(1) :LOOP TY This loop has run #COUNT times it will terminate when it runs #MAX times IF COUNT<MAX, COUNT=COUNT+1 GO TO :LOOP TY Do you want to do this again? ACCEPT IF 'yes', GO TO START IF 'no' GO TO FINISH :FINISH TY Goodbye! STOP </nowiki></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)