Simon Willison’s Weblog


2 items tagged “antlr”


Parsing CSV using ANTLR and Python 3. I’ve been trying to figure out how to use ANTLR grammars from Python—this is the first example I’ve found that really clicked for me.

# 6th April 2018, 2:33 pm / antlr, csv, parsing, python


Automated Translation of Java to Python. java2python can translate most Java code in to non-idiomatic Python, using ANTLR for the heavy lifting.

# 15th February 2007, 3:50 pm / antlr, java, java2python, python