<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: antlr</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/antlr.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2018-04-06T14:33:58+00:00</updated><author><name>Simon Willison</name></author><entry><title>Parsing CSV using ANTLR and Python 3</title><link href="https://simonwillison.net/2018/Apr/6/python3-antlr-csv/#atom-tag" rel="alternate"/><published>2018-04-06T14:33:58+00:00</published><updated>2018-04-06T14:33:58+00:00</updated><id>https://simonwillison.net/2018/Apr/6/python3-antlr-csv/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/jszheng/py3antlr4book/tree/master/08-CSV"&gt;Parsing CSV using ANTLR and Python 3&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
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.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/antlr"&gt;antlr&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/csv"&gt;csv&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/parsing"&gt;parsing&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;



</summary><category term="antlr"/><category term="csv"/><category term="parsing"/><category term="python"/></entry><entry><title>Automated Translation of Java to Python</title><link href="https://simonwillison.net/2007/Feb/15/automated/#atom-tag" rel="alternate"/><published>2007-02-15T15:50:47+00:00</published><updated>2007-02-15T15:50:47+00:00</updated><id>https://simonwillison.net/2007/Feb/15/automated/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://blog.melhase.net/articles/2007/02/15/automated-translation-of-java-to-python"&gt;Automated Translation of Java to Python&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
java2python can translate most Java code in to non-idiomatic Python, using ANTLR for the heavy lifting.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/antlr"&gt;antlr&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/java"&gt;java&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/java2python"&gt;java2python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;



</summary><category term="antlr"/><category term="java"/><category term="java2python"/><category term="python"/></entry></feed>