1 / 6

ANTLR

ANTLR. Andrew Pangborn & Zach Busser. ANTLR in a Nutshell. AN other T ool for L anguage R ecognition generates lexers generates parsers (and parse trees) ‏ Java-based, but has runtime implementations in other languages like python, javascript, c, c# An LL(k) parser

raine
Download Presentation

ANTLR

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ANTLR Andrew Pangborn & Zach Busser

  2. ANTLR in a Nutshell • ANother Tool for Language Recognition • generates lexers • generates parsers (and parse trees)‏ • Java-based, but has runtime implementations in other languages like python, javascript, c, c# • An LL(k) parser • EBNF grammar notation with custom extensions / syntax

  3. ANTLR Features • What can ANTLR do? • Extensions to typical EBNF?

  4. ANTLR Pros • What features does ANTLR have that are better/different from other parser generating tools? • ANTLRWorks – a great tool • Target languages besides Java – C, python, Javascript, etc.

  5. ANTLR Shortcomings • An LL parser – cannot support left-recursive grammars like YACC or PJ2 • No way to specify operator precedence (?)‏

  6. Getting started with ANTLR • http://www.antlr.org/wiki/display/ANTLR3/FAQ+-+Getting+Started • A good link – ANTLR documentation is pretty helpful online.

More Related