Measures Concepts
GitHub icon

Finite State Language

Finite State Language - Programming language

< >

Finite State Language is a programming language created in 2016.

#1431on PLDB 8Years Old

Try now: Web

Finite State Language, or FSL (pronounced "fossil,") is a programming language to make complex Finite State Machines easy to create and maintain. Finite State Machines can help make your code simpler, easier to test, more provable, and easier to reason about.


Example from the web:
machine_name: "Traffic light"; flow: down; arrange [Green Yellow]; Off 'Enable' -> Red; Red 'Next' => Green 'Next' => Yellow 'Next' => Red; [Red Yellow Green] ~> Off; // visual styling state Red : { background-color: pink; corners: rounded; }; state Yellow : { background-color: lightyellow; corners: rounded; }; state Green : { background-color: lightgreen; corners: rounded; }; state Off : { background-color : steelblue; text-color : white; shape : octagon; linestyle : dashed; };

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