-
Notifications
You must be signed in to change notification settings - Fork 7
Runtime #16
Comments
A parse function would also be excellent:
|
@mattpocock is this meant to return an AST? Or is this the JSON representation from the other issue? |
@matthewp Probably the same JSON representation from the other issue. Though I'd assume we'd add methods for the raw parsing to JS, too. |
I never properly addressed this issue. Some background: I originally started on Lucy a couple of years ago and tagged template literals is how it originally worked. You can see the original version here: https://github.com/matthewp/lucy/blob/main/packages/xstate/test/guard-test.js#L10 For various reasons I put the project aside until I started it back up recently. I decided it was best to define the language as a standalone thing first. Recently I've been more interested in trying out a tagged template approach again. It wouldn't work with things like That is to say I'm interested to try and work on this, but it won't be for at least a little while until the TS support and various tooling is more mature. Then I might come back around to this idea as I do think there is a segment of people who would be more likely to use Lucy if they didn't need to use a separate language file and associated tooling. |
Is there a runtime for this as well?
Similar to how in graphql you can create documents by using the 'gql' function, would it be possible to create state machines in the same way?
I saw a twitter post too with this exact approach.
https://twitter.com/n_moore/status/1385986489797029894?s=21
I look forward to this project's growth 😃
The text was updated successfully, but these errors were encountered: