Skip to content

Conversation

@bbakerman
Copy link
Member

@bbakerman bbakerman commented Sep 20, 2021

This adds a parser listener interface that allows a caller to add an parse listener pew request or JVM wide

With this one could count how many tokens or keep metrics on how many tokens are being presented etc..

@bbakerman bbakerman added this to the 17.4 milestone Sep 20, 2021
try {
//
// we allow the caller to specify new parser options by context
ParserOptions parserOptions = executionInput.getGraphQLContext().get(ParserOptions.class);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ParserOptions under the key ParserOptions.class

@andimarek
Copy link
Member

We should get our terminology right here:
Terminal, TerminalNode, Symbol and Token. I am not sure we use all of this correctly, we should lookup maybe how Antlr defines this.

@bbakerman bbakerman merged commit 420218d into master Sep 23, 2021
@andimarek andimarek modified the milestones: 17.4, 18.0 Oct 19, 2021
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.

3 participants