neogeny / TatSu

竜 TatSu generates Python parsers from grammars in a variation of EBNF

Home Page:https://tatsu.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to parse indent based language like yaml?

yamashita-optarc opened this issue · comments

Hi, Thanks for such a great module.
I want to parse indent based language like yaml but I cannot find information on it.
Could anyone helps me?

Hello! This is not an issue against TatSu. Perhaps you could post a question in StackOverflow on the [tatsu] and/or [parsing] topics?

I'm almost sure this question has been answered several times.

Some extensive research hasn't brought up anything TatSu related. I'm working on an indentation sensitive language parser myself and, unless I'm missing something, implementing it with TatSu is not really straightforward. It would be great to add some guidance to the manual. I can work a patch if someone points me existing resources.

I'm almost sure this question has been answered several times.

Please tell me existing issue or stackoverflow URL?
I already zapped this issue board and googling some word relating this issue, I cannot find information on it.
The only thing I could found was the definition of INDENT and DEDENT in the documentation (syntax/memoization) , and I understood that memoizing them would have some negative effects, but there're only empty grammar definitions and not complete information to configure a YAML parser.

Any suggestions?

Hello! Questions should go to the [tatsu] tag in StackOverflow.com

OK, thanks.

FYI: I posted question at StackOverflow.