FuncSug is an open source programming language created in 2022 by Claude Lion.
| #1572on PLDB | 4Years Old |
git clone https://github.com/cl4cnam/funcSugFuncSug is a simple alternative to event-driven programming and game loops. It features deterministic structured concurrency, waiting of a determinate event and automatic branch cancellation.
parallel exitAfter 1 finished:
while true:
waitSeconds(2)
displayNewMessage('Hello, World!')
awaitClick('#stop')and awaitBeep awaitBip branch break calljs def do else exitAfter exitWith false finished for if in js not onBreak or par parallel select seq sequence spawn true var while| Feature | Supported | Example | Token |
|---|---|---|---|
| Semantic Indentation | ✓ | ||
| Lists | ✓ | myParallelList := |1, 2, 3, 4, 5| | |
| Infix Notation | ✓ | ||
| Functions | ✓ | ||
| While Loops | ✓ | ||
| Conditionals | ✓ | ||
| Strings | ✓ | "Hello, World!" | |
| Comments | ✓ | ||
| Assignment | ✓ | name := 'John' | := |