Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: ANTLR


Related Topics
RAW
Aka
KCl
LSW

In the News (Sat 26 Dec 09)

  
  antlr   (Site not responding. Last check: 2007-09-07)
Antlr also produces a definition of a lexer which can be automatically con- verted into C code for a DFA-based lexer by dlg.
Hence, antlr serves a function much like that of yacc, however, it is notably more flexible and is more integrated with a lexer generator (antlr directly generates dlg code, whereas yacc and lex are given independent descriptions).
There are various other niceties in antlr, including the ability to spread one grammar over multiple files or even multiple grammars in a single file, the ability to generate a version of the grammar with actions stripped out (for documentation purposes), and lots more.
gd.tuwien.ac.at /linuxcommand.org/man_pages/antlr1.html   (1351 words)

  
 jGuru: ANTLR FAQ Home Page
ANTLR is a groovy and widely-used open-source parser and translator generator tool supported by those hip cats at jGuru.
A parse tree is a record of the rules (and tokens) used to match some input text whereas a syntax tree records the structure of the input and is insensitive...
ANTLR generates methods for rules that are too complex/large for my compiler.
www.jguru.com /faq/ANTLR   (838 words)

  
 How to use Antlr with C++   (Site not responding. Last check: 2007-09-07)
Antlr is shipped as source code, so you are actually compiling the parts your are going to use.
Antlr supports writing grammars in EBNF LL[k] in a way that is very handy in compare to LR grammas.
Antlr is designed so you can use it with Java, C++ or Sather and possible to use on several platforms.
www.imada.sdu.dk /~morling   (495 words)

  
 ANTLR Options
ANTLR exports a vocabulary for each grammar whose default name is the same as the grammar.
By default, ANTLR will generate code in all lexers to test each token against the literals table (the table generated for literal strings), and change the token type if it matches the table.
ANTLR will automatically turn off generation of default exception handling for rule where an exception handler is specified.
www.geocities.com /antlrtutorial/options.html   (2173 words)

  
 An Introduction To ANTLR
ANTLR, ANother Tool for Language Recognition, is a tool that accepts grammatical language descriptions and generates programs that recognize sentences in those languages.
ANTLR knows how to build recognizers that apply grammatical structure to three different kinds of input: (i) character streams, (ii) token streams, and (iii) two-dimensional trees structures.
ANTLR is completely in the public domain without even a copyright and comes with complete source code.
www.cs.usfca.edu /~parrt/course/652/lectures/antlr.html   (1483 words)

  
 ANTLR 2.00 Tree Construction   (Site not responding. Last check: 2007-09-07)
ANTLR helps you build intermediate form trees, or abstract syntax trees (ASTs), by providing grammar annotations that indicate what tokens are to be treated as subtree roots, which are to be leaves, and which are to be ignored with respect to tree construction.
ANTLR assumes that any nonsuffixed token reference or token-range is a leaf node in the resulting tree for the enclosing rule.
ANTLR supports the translation of unlabeled token references and rule references as a shorthand notation, as long as the token or rule name is unique within the scope of a single alternative.
csunx2.bsc.edu /antlr/trees.html   (3800 words)

  
 ANTLR Parser Generator
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions.
Terence Parr is the maniac behind ANTLR and has been working on ANTLR since 1989.
This is a port for ANTLR java to C++.
www.antlr.org   (453 words)

  
 ANTLR Task
Invokes the ANTLR Translator generator on a grammar file.
This task only invokes ANTLR if the grammar file (or the supergrammar specified by the glib attribute) is newer than the generated files.
Antlr 2.7.1 Note: To successfully run ANTLR, your best option is probably to build the whole jar with the provided script mkalljar and drop the resulting jar (about 300KB) into ${ant.home}/lib.
ant.apache.org /manual/OptionalTasks/antlr.html   (374 words)

  
 Dr. Dobb's | Compiler Construction with ANTLR and Java | July 22, 2001   (Site not responding. Last check: 2007-09-07)
ANTLR, short for "Another Tool for Language Recognition," is a language tool that gives you a framework for constructing recognizers, compilers, and translators for C, C++, and Java.
I sometimes refer to ANTLR as "LEX and YACC for the third millennium." Written entirely in Java, it generates either Java or C++, combines the lexical analyzer and parser specifications in one file, optionally generates abstract syntax trees (ASTs) and tree-walking classes, and allows very fine-grained control of the parse through predicates.
ANTLR works equally well on all platforms that support a Java VM, and for the adventurous, there's the C++ code generator.
www.ddj.com /documents/s=905/ddj9903h/9903h.htm   (2441 words)

  
 ANTLR 2.00 Specification: Meta Language   (Site not responding. Last check: 2007-09-07)
ANTLR will generate code to test the text of each token against the literals table, and change the token type when a match is encountered before handing the token off to the parser.
The syntax of a syntactic predicate is a subrule with a
ANTLR cannot be sure what lookahead can follow a syntactic predicate (the only logical possibility is whatever follows the alternative predicted by the predicate, but erroneous input and so on complicates this), hence, ANTLR assumes anything can follow.
www.complang.tuwien.ac.at /~ulrich/alex/WWW/institut/intern/ANTLRdoc/metalang.html   (4114 words)

  
 CS 382: Unit Testing & ANTLR: The Scanner
ANTLR will be unhappy with this since there aren't any productions yet.
There are two tricks here: (1) I need to let ANTLR know when the lexer has come across a newline (at least if we want our line counter to be accurate); (2) a newline may be represented three different ways (depending on the operating system that created the file).
This is a method in the code generate by ANTLR that keeps track of the line number of the input.
cs.calvin.edu /curriculum/cs/382/jdfrenscompilers/scanner.html   (1156 words)

  
 ANTLR-Mode for Emacs
ANTLR is a LL(k)-based recognition tool which generates lexers, parsers and tree transformers in Java, C++ or Sather and can be found at .
Insert or change one of ANTLR's options by a using the menu or a keyboard command.
Run ANTLR from within Emacs and find the error position by selecting the error message via the mouse or a keyboard command.
antlr-mode.sourceforge.net   (311 words)

  
 The ANTLR Parser Generator   (Site not responding. Last check: 2007-09-07)
ANTLR is implemented in Java, but will generate parsers in both Java and C++.
Since ANTLR is an open source project (under the gentle guidance of Terence Parr), there are a number of active contributors.
ANTLR is a significant piece of software and a great deal of credit is due to Terence Parr, Peter Wells and the other developers and maintainers of ANTLR.
www.bearcave.com /software/antlr   (416 words)

  
 ANTLR Options   (Site not responding. Last check: 2007-09-07)
ANTLR allows you to specify the token set used by any grammar (parser or lexer) from an external source.
ANTLR will always generate exception handling for the synthesized nextToken rule, but will not generate default exception-handling for any other rule.
ANTLR will optimize lookahead tests by generating a switch statement instead of a series of if/else tests for rules containing a sufficiently large number of alternates whose lookahead is strictly LL(1).
www.complang.tuwien.ac.at /~ulrich/alex/WWW/institut/intern/ANTLRdoc/options.html   (2452 words)

  
 Otaku, Cedric's weblog: ANTLR vs. JavaCC
Since I am fairly familiar with this family of tools, what I am looking for is pretty simple: a tutorial that will quickly fill me in on the syntax used to describe the lexer and the parser and how to invoke the tool.
Here is a quick advice to everyone who wants to make their software appealing: I know how tempting it is to expose the technical brilliance of the internals of your software, but just don't give in to it.
I like javaCC, it is pure java style, and the lexer of antlr is not based on DFA but LL, so it is more easy to write lexer description in javaCC.
www.beust.com /weblog/archives/000145.html   (1114 words)

  
 ANTLR Software Download
ANTLR Studio Eclipse Plugin [a very impressive integration of ANTLR with eclipse for creating, editing, and debugging parsers]
ANTLR comes with complete source and has no restrictions on its use.
The binary files are native executables for the ANTLR tool itself (not the run-time support etc...).
www.antlr.org /download.html   (170 words)

  
 ANTLR Specification: Vocabularies
ANTLR generates LTokenTypes.txt and LTokenTypes.java even though L is primed with values from P's vocabulary.
ANTLR sees the subgrammar as if you had cut and paste all of the nonoverridden rules of the supergrammar into the subgrammar like an include.
When you want a parser and lexer, for example, to share the same vocabulary space, all you have to do is place them in the same file with their export vocabs pointing at the same place.
www.doc.ic.ac.uk /lab/secondyear/Antlr/vocab.html   (1557 words)

  
 Dr. Dobb's | Compiler Construction with ANTLR and Java | July 22, 2001
Fast time-to-market trumps performance, at least initially, and ANTLR helps achieve it by letting you express the syntax of your language in an EBNF-like form (referred to as a "grammar") and using it to generate lexical analyzer and parser classes.
One of the first things you declare in an ANTLR grammar is the definition of a parser class.
Semantic actions in ANTLR are expressed as Java code enclosed in curly {} brackets and are triggered by subrules or whole rules.
www.ddj.com /184410884   (2441 words)

  
 ANTLR Adder Tutorial
As shipped, ANTLR only automatically keeps track of the start positions of tokens and doesn't know what file a token originally came from.
In this case, this functionality is used for a couple reasons, including using the token associated with an AST to hold the result of computing the expression it denotes and using the tokens associated with an AST and all of its children in order to report the full extent of an error.
The code presented here was written to use ANTLR 2.7.1, so things may not work if you are using an older version, or may work better if you are using a newer version.
www.milk.com /kodebase/antlr-tutorial   (995 words)

  
 ANTLR < Transform < TWiki   (Site not responding. Last check: 2007-09-07)
A complete skeleton of an ANTLR based transformation system for ANSI C and C with GCC extesions can be seen at http://www.codetransform.com/gcc.html.
Included are a parser, tree parser (to be "grammar subclassed" for your transformation passes), and a tree emitter to take your tree back to text.
All material on this collaboration platform is the property of the contributing authors.
www.program-transformation.org /view/Transform/ANTLR?skin=print.pattern   (108 words)

  
 ANTLR plugin for Eclipse
This project leverages the Eclipse platform (v3.02 and v3.1) by adding support for the parser generator ANTLR.
To add/remove the ANTLR project nature to/from a project select a project in Eclipse's navigator view and select from the context menu Toggle ANTLR project nature.
If you have automatic build turned on, ANTLR will be run against your grammar file whenever it has been modified.
antlreclipse.sourceforge.net   (515 words)

  
 ANTLR Examples
ANTLR trees can be pool allocated if the new operator is overridden in for the ASTNode class and the AST class.
At the same time, it would be nice if ANTLR tree construction could be used to build the AST during the parse since the grammar would not be obscured by a lot of semantic action code.
Doubling the memory use by using an ANTLR intermediate would be unacceptable, since HDL compilers tend to be memory limited for large circuit designs.
www.bearcave.com /software/antlr/antlr_examples.html   (2615 words)

  
 freshmeat.net: Project details for ANTLR
ANTLR (ANother Tool for Language Recognition) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++, Java, or Sather actions.
It is similar to the popular compiler generator YACC, however ANTLR is much more powerful and easy to use.
ANTLR can generate parsers, lexers, and tree-parsers in either C++, Java, or Sather.
freshmeat.net /projects/antlr   (164 words)

  
 [No title]
ANTLR 2.x uses a syntax that is nearly identical to the parser syntax.
Not only is the ANTLR tool itself significantly simpler, but it makes the job of a grammar writer much easier as well: you only need to learn one format of specification.
In ANTLR 2.x, you specify the scanner grammar in the same manner in which you specify the parser grammar.
www.javadude.com /articles/antlrtut   (8884 words)

  
 [DotGNU] [ANN] ANTLR 2.7.5 Release Candidate 2 is now available
ANTLR is an easy to use tool that generates human-friendly source code for lexers, parsers and tree walkers/parsers from language grammars.
The generated code is similar to what a developer might manually and is therefore easy to understand.
The ANTLR toolkit provides a framework for constructing language processing tools (such as analysers, compilers and translators) in C#, Java, C++ and Python.
www.dotgnu.org /pipermail/developers/2005-January/000014.html   (157 words)

  
 CS 382: Unit Testing & ANTLR: The Parser
Errors in parsing are reported by this method, and it's the other methods and variables that control when and where this happens.
This removes the ambiguity from the grammar: ANTLR is happy, and the compiler is happy.
ANTLR provides its own solution which is a little more useful (at least I think so).
cs.calvin.edu /curriculum/cs/382/jdfrenscompilers/parser.html   (1349 words)

  
 USF Arts & Sciences - News - Terence Parr will give a talk on ANTLR parser generator.   (Site not responding. Last check: 2007-09-07)
Terence Parr will be giving an ANTLR parser generator talk entitled "The National Audubon Society Field Guide to Applying ANTLR in the Wild" at the Silicon Valley SDForum.
ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, or C++ actions.
ANTLR has led to the resurgence of recursive-descent parsing and introduced a number of groovy features that have become industry standard such as predicated parsing and k>1 lookahead.
artsci.usfca.edu /servlet/NewsItem?newsItemID=168   (156 words)

  
 Understanding ANTLR Grammar Files   (Site not responding. Last check: 2007-09-07)
Believe it or not but Antlr grammar files are built to be as close to your java source files as possible.
Everything you put in the header section of the grammar file is placed right on top of all the java files generated by Antlr.
A rule definition inside an antlr grammar corresponds to a method definition in the generated java file.
www.antlrstudio.com /articles/article-grammarlayout/grammarLayout.htm   (330 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.