JavaCC 21 now has assertions!

JavaCC 21 now has assertions. There are actually two kinds of assertions: The assertion condition is expressed in Java code. The assertion condition is a lookahead expansion. The first kind of condition looks like this: ASSERT {someCondition()} Optionally, the assertion can have a message, as in: ASSERT {x!=y} : “At this point, x and y …

JavaCC 21 now has assertions! Read More »