Open tst2005 opened 7 years ago
Yes, I know metalua AST format. It's designed for very different grammar, that is much simpler and saner than sh.
You can very easily get similar representation using sh-parser's low-level API (raw captures). Tag indices are documented in AST.adoc.
Hello,
I wonder if you already know the AST format defined/used by metalua ?
It use a type name into a
["tag"]
key, all data are used by numerical indexes.It is shorter to dump for human debug
The current lua-sh-parser ast format :
the current format but shown with a metalua style
The same data in metalua AST format
The metalua usual form for the same sample
What did you think about the metalua AST format ?
I'm working on the step that I want convert back
AST
tosh
then I'm trying to move ast format to a common one ;-)Regards,