Terence Parr

Results 554 comments of Terence Parr

I think it would be good to have a test that involved for context parsing all the time, @jimidle. Probably good for the other targets to check this as well.

Hooray! Lemme look at #3878 tomorrow and then take a look at this.

> beta Well, sounds reasonable to me but I need to evaluate the merits of either approach discussed in https://github.com/antlr/antlr4/discussions/3867 What's involved in creating a suitable beta? A zip? A...

hi. The use of semantic predicates is sometimes counterintuitive in the decision making process. It is possible there is a bug but I would have to dig down to see...

I don't have time to dig into this too deeply at the moment, but definitely `value[true]+` is a loop that requires look ahead to decide whether to continue matching value...

I think I'm remembering a critical rule: semantic predicates can only depend on values available prior to initiation of a prediction. Even passing parameters along are not guaranteed.

yep. a global will work because it doesn't violate the rules that actions cannot execute during a prediction event.

yeah, can't execute actions during the prediction as all hell would break loose.

I'm not sure but it could be something about the data you are passing again. Is there a way for you to come up with a trivial data set that...