Skip to content

Question about computeContentAssist() #1926

Answered by msujew
appocalypseltd asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @appocalypseltd,

If the rule at index 4 is unterminated, then why are the preceding rules also not indicated as unterminated?

Every item in the ruleStack/occurrenceStack array is not terminated. Them being in the array is the indicator.

So if additionExpression is unterminated, why is the preceding comparison also not unterminated?

I believe you're under a misconception there. The value in the occurenceStack indicates the SUBRULE<number> call. Nothing else. In fact, comparison is not terminated yet, given that it's in the ruleStack array.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@appocalypseltd
Comment options

@msujew
Comment options

@appocalypseltd
Comment options

@msujew
Comment options

@appocalypseltd
Comment options

Answer selected by msujew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1925 on February 23, 2023 11:52.