Your #IDE spots errors before you even hit run. But HOW? Explore the hidden world of #StaticAnalysis — where grammars, parse trees & #ASTs rule. @martin_fmi breaks it all down. Read: https://javapro.io/2025/02/04/the-art-of-static-code-analysis/

#ANTLR #JavaParser #EclipseJDT #JavaCC

The art of static code analysis - JAVAPRO International

The necessity for static analysis of source code … Most Java (and not only) developers have used at…

JAVAPRO International
Anybody (very) familiar with #javacc? I'd like to extract the #DFA of the #lexer (for completion suggestions). Is there an option I can give javacc to output the DFA in a readable format?

I can probe the generated #parser for possible next #tokens but not extract their images when they are non-trivial. I have a #regexp library I can use for the analysis if I just can get the #automaton or regular expression for a token.