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

Support for "include Rules" #13

Open
igordejanovic opened this issue Jan 30, 2015 · 2 comments
Open

Support for "include Rules" #13

igordejanovic opened this issue Jan 30, 2015 · 2 comments

Comments

@igordejanovic
Copy link
Member

A form of rules that will generate attributes on the calling meta-class.

Rule1:
    a=INT Rule2;
Rule2:
    b=STRING;

Rule2 is called directly (not from an assignment) thus b attribute will be created on Rule1 instance. Rule2 instance will not be instantiated.

@danibishop
Copy link

I was just about to ask about this 👍

In my case, I just expected this as default behavior and I guess I would not be the only one.

@igordejanovic
Copy link
Member Author

Yep. Definitely should be the default behaviour. It would reduce grammar boilerplate in some cases.

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

No branches or pull requests

2 participants