Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Fable

Fable - Programming language

< >

Fable is a programming language created in 2012.

#978on PLDB 11Years Old 0Books
1Papers

Fable is a compiler that brings F# into the JavaScript ecosystem


Example from the web:
type Face = | Ace | King | Queen | Jack | Number of int type Color = | Spades | Hearts | Diamonds | Clubs type Card = | Face * Color let aceOfHearts = Ace, Hearts let tenOfSpades = (Number 10), Spades match card with | Ace, Hearts -> printfn "Ace Of Hearts!" | _, Hearts -> printfn "A lovely heart" | (Number 10), Spades -> printfn "10 of Spades" | _, (Diamonds|Clubs) -> printfn "Diamonds or clubs" // Warning: // Incomplete pattern matches on this expression. // For example, the value '(_,Spades)' may indicate // a case not covered by the pattern(s).

Language features

Feature Supported Token Example
Print() Debugging ✓ printfn
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Semantic Indentation X

Publications about Fable from Semantic Scholar

title authors year citations influentialCitations
Fable II: Design of a modular robot for creative learning Moises Pacheco and Rune Fogh and H. Lund and D. Christensen 2015 14 4
vhdl-ams.html · fable-lang.html · isq.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com