Cirru / cirru-script

[Deprecated, prefer calcit-lang/calcit] Generated JavaScript from Cirru Syntax
http://script.cirru.org/
56 stars 1 forks source link

do you have a grammar description file for this script? #2

Open xiaolzha opened 9 years ago

tiye commented 9 years ago

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

xiaolzha commented 9 years ago

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

tiye commented 9 years ago

@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.