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

Track the starting and ending position of each token. #53

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

plusvic
Copy link
Member

@plusvic plusvic commented Apr 27, 2022

This opens the door for improving the AST in the future, storing the starting and ending position within the source code for each node in the AST. Also improves the way in the line number associated to each rule is computed, until know the line number for rule was the line number where the "rule" keyword was found, but now it takes in to account that a rule definition may start with some modifiers located some lines before the "rule" keyword.

This opens the door for improving the AST in the future, storing the starting and ending position within the source code for each node in the AST. Also improves the way in the line number associated to each rule is computed, until know the line number for rule was the line number where the "rule" keyword was found, but now it takes in to account that a rule definition may start with some modifiers located some lines before the "rule" keyword.
@plusvic plusvic merged commit d97259d into master Apr 27, 2022
@plusvic plusvic deleted the track_token_positions branch April 27, 2022 15:09
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

Successfully merging this pull request may close these issues.

2 participants