LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > NullTerminator
User Name
Password

Notices


Rate this Entry

antlr notes and rants

Posted 11-26-2012 at 07:31 AM by NullTerminator
Updated 04-13-2013 at 11:25 AM by NullTerminator

Collecting some refs and thoughts on antlr, parser, tree walker, grammar, etc

Escape Characters:
Short article at antlr-interest

useful command line args java org.antlr.Tool
http://www.antlr.org/wiki/display/AN...d+line+options
-trace - generate a parser with some tracing statements
-debug - generates a parser that emits debugging information
-profile, hmmmm
-print or -report prints out the grammar

A fairly complete example
antlr.org/wiki/pages/viewpage.action?pageId=13828121
simple tutorial with lex dump
http://www.alittlemadness.com/2006/0...xical-analysis

Good discussion article
http://www.bearcave.com/software/ant..._examples.html

A tutorial about writing your own language
http://felix.plesoianu.ro/scratch-la...tch-lang3.html

A sample app Pie is included with the source for the book Language Implementation Patterns, by Terence Parr

Other inspiring bookmarks
http://specmath.com/tutorials/expression_parser_java -- good basic handcoded math evaluator

http://specmath.com/tutorials/expres...arser_java_ext -- more extensive parser with callable user entered functions


some very early bookmarks
http://meri-stuff.blogspot.com/2011/...-language.html
https://github.com/SomMeri/antlr-ste...6SimpleBoolean
Posted in Uncategorized
Views 993 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration