Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiaolzha opened this issue Apr 13, 2015 · 3 comments
Open

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

xiaolzha opened this issue Apr 13, 2015 · 3 comments

Comments

@xiaolzha
Copy link

No description provided.

@tiye
Copy link
Member

tiye commented Apr 13, 2015

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
Copy link
Author

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

@tiye
Copy link
Member

tiye commented Apr 14, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants