The existing typescript implemetation builds a complete AST (Abstract Syntax Tree), over which middlewares are run in several passes. Yes, there are multiple passes over the tree. This is necessary, among other things, to build a table of contents (TOC).
thank you
Might not work for my use case then. djot is single-pass so dovetails better with forth-style languages.
I do like the blocks and mistake marking though :)
Interesting. Have you been using djot for anything substantial, like technical/academic publishing, large projects like entire books, or similar? How does it fare and what is your toolchain? Thanks in advance!
I'm trying to use it as part of a new forth-style language, hence the need for single-pass.
I've found it as easy to use as markdown, but more regular ie. Well defined, which suits a language spec.
The key parts for me are reference links for execution-thread documentation and ``` blocks to program literally, (and separate/scope comments // from documentation """)
The toolchain as such is just part of the language- the compiler needs to parse djot. I'm not fully there though.