You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
Congrats on the new DSL! It is indeed a significant improvement on the experience of writing large-enough state machines (e.g., using state machines where they do make sense). I have two questions:
why not compile to Robot (say, a "strict mode" version of the language that does not include actors)? It still makes sense to have the small size
Got to look at your code anyways to see how you did it but thought I'll stop by and ask.
[edit]: Ok, I had a quick look and it seems like I should be able to reuse your parser. I should just have to rewrite the traversal of the parsed tree (ParseResult). Does that make sense to you? BTW that is terrificly well-written C code. I haven't read C in a decade, and that went like a charm even without comments :-)
The text was updated successfully, but these errors were encountered:
Yeah I do want to do other output formats in the future. Probably standalone 0 dependency would be the next thing I would do. However I want to flesh out the language a bit more and make the overall XState experience better before doing that.
If you're interested in poking around then compiler_xstate.c is what produces the XState output. It takes some understanding of the AST structure though. That's something I need to document better but it's all in node.h.
Yep, that is the file I had been looking up. The AST structure is not that complex, and the code is well written so I should be able to achieve my goals. But I probably should wait for the language to stabilize. Well I will still play around with it. Thanks!
Congrats on the new DSL! It is indeed a significant improvement on the experience of writing large-enough state machines (e.g., using state machines where they do make sense). I have two questions:
Got to look at your code anyways to see how you did it but thought I'll stop by and ask.
[edit]: Ok, I had a quick look and it seems like I should be able to reuse your parser. I should just have to rewrite the traversal of the parsed tree (
ParseResult
). Does that make sense to you? BTW that is terrificly well-written C code. I haven't read C in a decade, and that went like a charm even without comments :-)The text was updated successfully, but these errors were encountered: