Measures Concepts
GitHub icon

Formulating On-Line Calculations in Algebraic Language

Formulating On-Line Calculations in Algebraic Language - Programming language

< >

Formulating On-Line Calculations in Algebraic Language, aka Formulating On-Line Calculations in Algebraic Language, is a programming language created in 1968 by Richard Merrill.

#899on PLDB 56Years Old

Try now: TIO

FOCAL is an interpreted programming language resembling JOSS. The name is an acronym for Formulating On-Line Calculations in Algebraic Language. Largely the creation of Richard Merrill, FOCAL was initially written for and had its largest impact on the Digital Equipment Corporation's (DEC's) PDP-8 computers. Read more on Wikipedia...


Example from hello-world:
0.1.0.1 TYPE "HELLO WORLD" , !
Example from Wikipedia:
FOCAL15 V6B *01.10 ASK "IN WHAT YEAR WERE YOU BORN?", YEAR *01.20 SET YEAROFFOCAL=YEAR-1969+1 *01.30 IF (YEAROFFOCAL) 02.10,02.10,01.40 *01.40 TYPE "YOU WERE BORN IN THE YEAR ",YEAROFFOCAL," OF FOCAL!",! *01.50 GOTO 01.10 *02.10 TYPE "YOU ARE TOO OLD FOR FOCAL, POPS",! *02.20 GOTO 01.10 *GO IN WHAT YEAR WERE YOU BORN?:1969 YOU WERE BORN IN THE YEAR 1.0000 OF FOCAL IN WHAT YEAR WERE YOU BORN?:1950 YOU ARE TOO OLD FOR FOCAL, POPS IN WHAT YEAR WERE YOU BORN?:

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout