翻訳と辞書
Words near each other
・ Antoine Bibeau
・ Antoine Bibesco
・ Antoine Bigot
・ Antoine Blanc
・ Antoine Blanc de Saint-Bonnet
・ Antoine Blanchard
・ Antoine Blondel
・ Antoine Blondin
・ Antoine Bohier Du Prat
・ Antoine Bollo
・ Antoine Bonifaci
・ Antoine Bouchard
・ Antoine Bourdelle
・ Antoine Bournonville
・ Antoine Bourseiller
ANTLR
・ ANTLR Studio
・ ANTM
・ Antman
・ Antmusic
・ Antnäs
・ Anto
・ Anto (name)
・ Anto Antony
・ Anto Drobnjak
・ Anto Grabo
・ Anto Gvozdenović
・ Anto Jakovljević
・ Anto Kovačević
・ Anto Vasović


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

ANTLR : ウィキペディア英語版
ANTLR

In computer-based language recognition, ANTLR (pronounced ''Antler''), or Another Tool For Language Recognition, is a parser generator that uses LL(
*)
for parsing. ANTLR is the successor to the Purdue Compiler Construction Tool Set (PCCTS), first developed in 1989, and is under active development. Its maintainer is Professor Terence Parr of the University of San Francisco.
ANTLR takes as input a grammar that specifies a language and generates as output source code for a recognizer for that language. While version 3 supported generating code in the programming languages Ada95, ActionScript, C, C#, Java, JavaScript, Objective-C, Perl, Python, Ruby, and Standard ML,〔(SML/NJ Language Processing Tools: User Guide )〕 the current release at present only targets Java, C#, JavaScript, Python2 and Python3. A language is specified using a context-free grammar which is expressed using Extended Backus–Naur Form (EBNF).
ANTLR can generate lexers, parsers, tree parsers, and combined lexer-parsers. Parsers can automatically generate abstract syntax trees which can be further processed with tree parsers. ANTLR provides a single consistent notation for specifying lexers, parsers, and tree parsers. This is in contrast with other parser/lexer generators and adds greatly to the tool's ease of use.
By default, ANTLR reads a grammar and generates a recognizer for the language defined by the grammar (i.e. a program that reads an input stream and generates an error if the input stream does not conform to the syntax specified by the grammar). If there are no syntax errors, then the default action is to simply exit without printing any message. In order to do something useful with the language, actions can be attached to grammar elements in the grammar. These actions are written in the programming language in which the recognizer is being generated. When the recognizer is being generated, the actions are embedded in the source code of the recognizer at the appropriate points. Actions can be used to build and check symbol tables and to emit instructions in a target language, in the case of a compiler.
As well as lexers and parsers, ANTLR can be used to generate tree parsers. These are recognizers that process abstract syntax trees which can be automatically generated by parsers. These tree parsers are unique to ANTLR and greatly simplify the processing of abstract syntax trees.
ANTLR 3 is free software, published under a three-clause BSD License. Prior versions were released as public domain software.〔http://www.antlr.org/pipermail/antlr-interest/2004-February/006340.html〕 The book ''The Definitive ANTLR 4 Reference'', also written by Parr, is available free for charge in source form.
Several plugins have been developed for the Eclipse development environment to support the ANTLR grammar. There is ANTLR Studio, a proprietary product, as well as the ANTLR (2 ) and (3 ) plugins for Eclipse hosted on SourceForge.
== ANTLR 4 ==

ANTLR 4 deals with left recursion correctly (except for indirect left recursion, i.e. grammars rules x which refer to y which refer to x)〔(What is the difference between ANTLR 3 & 4 )〕 and supports actions and attributes flexibly. That is, actions can be defined separately from the grammar, allowing for easier targeting of multiple languages.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「ANTLR」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.