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

Slight tweaking #1

Open
beelsebob opened this issue Aug 18, 2012 · 0 comments
Open

Slight tweaking #1

beelsebob opened this issue Aug 18, 2012 · 0 comments

Comments

@beelsebob
Copy link
Contributor

Hi Gavin,

I just thought I'd let you know that I've updated CoreParse a little to support rather cleaner access to the elements of a rule, the example in the readme now uses them. This allows you to tag rules as follows:

Expression ::= term@<Term> | expr@<Expression> op@<AddOp> term@<Term>

And then in the implementation of initWithSyntaxTree: allows you to get at these tagged sections easily by using [syntaxTree valueForTag:@"term"]

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

1 participant