Measures Concepts
GitHub icon

Opal

Opal - Programming language

< >

Opal is an open source programming language created in 1994.

Source code:
git clone https://github.com/TU-Berlin/opal
#972on PLDB 30Years Old 14Repos

OPAL (OPtimized Applicative Language) is a functional programming language first developed at the Technical University of Berlin.. Read more on Wikipedia...


Example from Linguist:
-- Deepak Chopra nonsense text generator -- see https://github.com/StoneCypher/DeepakChopra_Opal/ starts = ["Experiential truth ", "The physical world ", "Non-judgment ", "Quantum physics "] middles = ["nurtures an ", "projects onto ", "imparts reality to ", "constructs with "] qualifiers = ["abundance of ", "the barrier of ", "self-righteous ", "potential "] finishes = ["marvel.", "choices.", "creativity.", "actions."] alert starts.sample + middles.sample + qualifiers.sample + finishes.sample
Example from Wikipedia:
IMPLEMENTATION GCD IMPORT Nat COMPLETELY DEF GCD(a,b) == IF a % b = 0 THEN b ELSE IF a-b < b THEN GCD(b,a-b) ELSE GCD(a-b,b) FI FI

Language features

Feature Supported Token Example
Comments ✓
-- A comment
Line Comments ✓ --
-- A comment
Semantic Indentation X

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