Lucy: A Concise DSL for Finite State Machines

2025-01-01

Lucy is a concise language for describing Finite State Machines (FSMs). It allows complex events, guards, actions, and destination states to be expressed in a single line. Nesting machines enables hierarchical FSMs. Lucy compiles to XState, a leading JavaScript FSM library, supporting all its core features. Written in C and compiled to WebAssembly, Lucy boasts a significant speed advantage (15x faster than its previous JavaScript-based compiler), making it ideal for JavaScript projects.

Read more
Development Finite State Machine