-
Notifications
You must be signed in to change notification settings - Fork 5
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
Expose position information somehow #6
Comments
One design: set those corresponding attributes on the named terms before passing them, in the wrapper function. Unfortunately, this might conflict with already-defined attributes. To work around that, it would check if |
It would it nice to provide a list of attributes to copy in addition to |
This functionality can be implemented with #7 |
In #8 an additional function has been added to the api (easyply.location) to track term position. |
In PLY, the
lineno
,lexpos
,linespan
, andlexspan
methods of YaccProduction (the type ofp
) allow recovering position information from parsed terminals and non-terminals. This is often important in robust parsers, for error reporting during or after parsing. easyply doesn't yet support this, but it should.The text was updated successfully, but these errors were encountered: