Is it possible to implement an internal DSL in a language without macros? Has anyone succeeded in implementing a Ruby-like internal DSL in python?
I am trying to develop a simple state machine with a more intuitive syntax like:
start -> Event -> Next ->Action
I am having a bit of trouble grokking your question.
AFAIU, you are asking
Can you implement a Ruby-like internal DSL in a language without macros?
And the answer to that is obviously "Yes", since Ruby doesn't have macros.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With