Skip to content

Conversation

PatrickStahl
Copy link

In the parserinterpreter.py file, there was an issue where an attempt was made to access a set using an index. However, sets do not support indexing, which led to an error.

This change fixes the issue by modifying the logic to access the elements of the set in a valid manner.

Copy link
Contributor

@ericvergnaud ericvergnaud left a comment

Choose a reason for hiding this comment

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

The fact that we have an incorrect indent in this PR cruelly highlights the lack of testing for this ParserInterpreter. Is that something you could create ?


# Begin parsing at startRuleIndex#
def parse(self, startRuleIndex:int):
def parse(self, startRuleIndex:int):
Copy link
Contributor

Choose a reason for hiding this comment

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

incorrect indent ?

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