Legacy JavaCC 21 Posts

Older posts made before the Congo rebranding

Turning to Semantic Lookahead

In my last post I reported that I had finally fixed the way syntactic lookahead works in JavaCC. This leads to the natural question: what about semantic lookahead? Well, what is historically called semantic lookahead in JavaCC is actually misnamed. It’s really just a bit of java code that is used to determine whether to enter an expansion or not. Something like: …

Turning to Semantic Lookahead Read More »

Bugfix! Nested syntactic lookahead now works correctly!

Fixed a Longstanding Bug Known Issue in JavaCC: Nested syntactic lookahead now works! There is a quite serious bug (let’s just call it by what it is, shall we?) of very long standing in JavaCC. Basically, syntactic lookaheads do not nest. This bug is documented in Theodore Norvell’s JavaCC FAQ, which by the way, is the best …

Bugfix! Nested syntactic lookahead now works correctly! Read More »

Reducing Visual Clutter: Introducing a New Streamlined Syntax for JavaCC 21

The overarching design goal of the JavaCC 21 project (dating back from when it was still called FreeCC) is to transform the legacy JavaCC tool into something more useful and useable. Having a clean syntax does not, in itself, further the first goal, but it is surely a key part of the latter. While it is possible for …

Reducing Visual Clutter: Introducing a New Streamlined Syntax for JavaCC 21 Read More »

Milestone: JavaCC 21 now supports the Java language up to JDK 13

Today, I put in a little incremental effort on the included Java grammar and nailed the last couple of remaining cases that prevented it from parsing all of the java source files in the src.zip included in the JDK 13. There were a few remaining constructs that were still tripping it up and I finally …

Milestone: JavaCC 21 now supports the Java language up to JDK 13 Read More »

Fault tolerant parsing, is it a pipe dream? (An answer to Angelo Zerr)

This is a response to a private email from Angelo Zerr, but finally, I thought to put my answer in public so that it could attract more general discussion. Angelo wrote me saying: I don’t know if I have explained very well my idea with tolerant, incremental parser and LSP generation project. But let for …

Fault tolerant parsing, is it a pipe dream? (An answer to Angelo Zerr) Read More »