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

API to lookup tokens and AST nodes from text position #39

Closed
woutersl opened this issue Oct 16, 2017 · 4 comments

Comments

@woutersl
Copy link
Member

commented Oct 16, 2017

Original report by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


At this time, the parse result only give access to the root AST node and then recursively to the children. It is not possible at this time to lookup an AST node (or a token) based on the position in the input text.

  • Add new API to retrieve Tokens and AST nodes for given text position and index.
  • Add new API to retrieve the parent node of an AST node.
@woutersl

This comment has been minimized.

Copy link
Member Author

commented Oct 16, 2017

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


Ongoing work

@woutersl

This comment has been minimized.

Copy link
Member Author

commented Jan 30, 2018

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


[fix] Fixing issue #39 API to lookup tokens and AST nodes from text position

2 similar comments
@woutersl

This comment has been minimized.

Copy link
Member Author

commented Jan 30, 2018

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


[fix] Fixing issue #39 API to lookup tokens and AST nodes from text position

@woutersl

This comment has been minimized.

Copy link
Member Author

commented Jan 30, 2018

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


[fix] Fixing issue #39 API to lookup tokens and AST nodes from text position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.