frame_transpiler
frame_transpiler copied to clipboard
Frame is a markdown language for creating state machines (automata) in Python as well as generating UML documentation.
https://www.reddit.com/r/Python/comments/1cqoyuq/frame_a_new_language_for_programming_state/ I think this project could do with a serious think about the [strangeness budget](https://steveklabnik.com/writing/the-language-strangeness-budget) of the language. Everything you do that is unlike anything else people know will make...
The issue is that 1) $Ready doesn't exist and 2) there is an event handler after the transition. This combination induces a panic in v0.11.7. ``` #TimeMachine -machine- $Start |timeout|...
This is not possible. ``` print(^=) ``` Perhaps this token to evaluate the return variable as an expression: ``` &^ print(&^) ```
``` #ExitEventHistoryRustSpec -interface- e1 -machine- $S0 | $S1 ^ $S1 |>| ("hi") -> $$[-] ^ |
Expected: error at "machine." Actual: no error ``` fn main { var machine:# = #MealyMachine() machine. } ```
1. Update python generator to fix " #Emitted from framec_v0.11.2" - remove whitespace - update the version
``` #StatesFC -machine- $S1 |e1| var s:$ = $S2() foo() ? s = $S3() :| -> $(s) ^ $S2 $S3 |e| // ternary expression var s:$ = foo() ? $S1()...
Explore if there is a way to gracefully exit with a message after a panic.
^? seems like a good choice. ``` $Maybe |>| ^= "maybe" print(^?) ^? == "maybe" -> $FigureItOut :| ^ ```