But in some browsing of lezer/markdown, it seems these parsers are very… position / character-index oriented? Seems kinda intimidating, coming from tree-sitter’s grammar files (JS, but without caring for index / positional information).
.grammar file. Is there a tutorial?
I also need to create a new grammar – Is the
.grammar file the way to go? how is that turned into a parser for codemirror? (and then how can I interlace it with markdown? (aka MDX style (though, I’m not doing MDX specifically))).