cirru-script icon indicating copy to clipboard operation
cirru-script copied to clipboard

do you have a grammar description file for this script?

Open xiaolzha opened this issue 10 years ago • 3 comments

xiaolzha avatar Apr 13 '15 14:04 xiaolzha

What kind of descriptions do you want?

By now there's only some introductions and exmaples. They may help. http://cirru.org/ https://github.com/Cirru/cirru-parser/tree/master/cirru

tiye avatar Apr 13 '15 15:04 tiye

I meant a LALR or LL grammar description file that can be used to generate a parser

xiaolzha avatar Apr 14 '15 12:04 xiaolzha

@Garriot no, parser generator are not good at paring indentations, while that's the most important part of Cirru's syntax. And CirruScript might be different with most language which does lexing and parsing before geting an AST. CirruScript is first parsed into a tree defined by Cirru project, that then that tree is converted to a AST. I may write a better guide one day. But probably I will not present a LL definition.

tiye avatar Apr 14 '15 13:04 tiye