I was playing around with ANTLR today and was at bit overwhelmed at both the detail and lack of detail in various documentation and resources I was able to find. Plenty of grammar examples kicking around but some more recent tutorials that used ANTLR v3 would have been helpful.
The problem I’m trying to solve is simple, define a grammar for a basic search language (to potentially be extended over time), parse it into an AST and manipulate appropriately.
After some initial frustration, I did make headway on parts 1 + 2 of the plan. We’ll see how the rest plays out next week.
For the benefit of others, if you’re looking to get started with ANTLR, here’s a useful introduction blog post. A quick search on dzone would have saved some trial and error.
For what it’s worth, getting ANTLR hooked into Maven is pretty simple and there’s decent documentation available for that. The IntelliJ plugin for ANTLRWorks is quite slick and includes a nice debugger.
I’m going to have to pickup The Definitive ANTLR Reference if this implementation pans out.
-
Win7, nice to meet you. I hate to admit it but I’ve been running Vista on a desktop machine at home for the better part of the past 8 months. It has not been ...
-
Windows Live Writer isn’t bad Until recently, the bulk of my writing was done on a Mac using Ecto. I was looking for a suitable publishing tool for Windows and was directed towards ...
-
Pet Peeve: Don’t email my password to me in plain text You know the drill.
Signup for some random service on the internet
Receive a confirmation email with your account information
or
Forget a password for some random service ...
-
Eclipise Memory Analyzer (MAT) I must say the Eclipse Memory Analyzer looks pretty slick. There is some pretty good material over on the developers blog. Lastly, there was a talk on it ...
-
Open-source Web-based Code Review Tool: Rietveld Guido van Rossum, of Python fame, has recently released a Django-based application that enables web-based code reviews... Rietveld.
It supports any language and currently can hook into Subversion repositories. You ...
Latest Entries
- Hibernate Scalability Talk
- Win7, nice to meet you.
- Good-bye Exchange, it was nice knowing you (I hope)
- Framework misuses are still your bugs.
- "No matter how cool your interface is, less of it would be better."
- Ribs ribs ribs RIBS!!!!
- Great Article on David Kelly
- Windows Live Writer isn’t bad
- Playing around with Rails again
- Lessons Learned as a Project Lead
Blogroll
No Comments
Leave a Comment
trackback address