Zulip Chat Archive

Stream: new members

Topic: Recommendatins for writing `do` like DSL


Markus Schmaus (Apr 04 2024 at 07:58):

I have an idea for a DSL similar to the do notation that I want to explore.

Does anyone have any tips on writing a DSL in general?

Where can I find the components for the do notation in the source code? I found docs#Lean.Parser.Term.do, but that's just for parsing, and I can't find where this is connected with actual computation.

Thanks for your help.

Sebastian Ullrich (Apr 04 2024 at 09:23):

Are you aware of https://lean-lang.org/papers/do.pdf?

Markus Schmaus (Apr 04 2024 at 11:09):

I am aware and I am in the process of reading it, it's awesome.


Last updated: May 02 2025 at 03:31 UTC