„ANTLR” változatai közötti eltérés

[nem ellenőrzött változat][nem ellenőrzött változat]
Tartalom törölve Tartalom hozzáadva
Tiplity (vitalap | szerkesztései)
létrehozás
 
Tiplity (vitalap | szerkesztései)
Nincs szerkesztési összefoglaló
25. sor:
Az '''ANTLR''' (ejtsd: entler) a számítógépes nyelvfelismerés szakterületén használatos szoftver. LL(*) típusú szintaktikus [[Elemző (informatika)|elemzőket]] állít elő. AZ ANTLR az 1989-ben kifejlesztett '''Purdue Compiler Construction Tool Set''' ('''PCCTS''') utódja. Fejlesztője Terence Parr, a San Franciscói Egyetem professzora.
 
Az ANTLR bemenete egy nyelvet leíró [[formális nyelvtan]], kimenete pedig egy ezen nyelvet felismerő véges automata forráskódja. Az ANTLR a következő kimeneti [[Programozási nyelv|programnyelveket]] támogatja: [[Ada (programozási nyelv)|Ada]], [[ActionScript]], [[C (programmingprogramozási languagenyelv)|C]], [[C Sharp|C#]], [[Java (programmingprogramozási languagenyelv)|Java]], [[JavaScript]], [[Objective-C]], [[Perl]], [[Python (programozási nyelv)|Python]], and [[Ruby (programozási nyelv)|Ruby]]. A nyelvet környezetfüggetlen nyelvtan írja le a kiterjesztett [[Backus–Naur forma]] segítségével.
 
Az ANTLR alkalmas nyelvi elemzők, lexikális elemzők, faelemzők, és kombinált nyelvi-lexikális elemzők generálására. Az elemzők képesek automatikusan szintaxisfákat alkotni, amelyek tovább vizsgálhatók a faelemzők segítségével. Az ANTLR mindegyik célra egységes leírónyelvet biztosít, amely egyszerűsíti a használatát.
 
Alapértelmezés szerint az ANTLR beolvassa a megadott nyelvtant, és létrehozza a nyelvtanhoz tartozó elemzőt (egy olyan programot, amely hibát jelez, ha a bemenete nem felel meg a nyelvtan szintaxisának). Ha nincsenek szintaktikus hibák, az elemző egyszerűen üzenet nélkül kilép. A nyelvtani elemekhez azonban akciókat is lehet kapcsolni. Az akciók ugyanazon a nyelven íródnak, amelyen az elemző, ezek a kódrészletek a megfelelő helyeken beépülnek az elemző kódjába. Akciók segítségével szimbólumtáblákat építhetünk és ellenőrizhetünk, vagy fordítók esetében a célnyelven utasításokat adhatunk.
 
Az ANTLR 3 is [[freeBSD softwareLicenc]], publishedalatt under a three-clausekiadott [[BSDszabad Licenseszoftver]]. PriorA versionskorábbi wereverziók released asa [[public domainközkincs]] softwarerészei.<ref>http://www.antlr.org/pipermail/antlr-interest/2004-February/006340.html</ref>
ANTLR allows generating [[parser]]s, [[lexical analysis|lexer]]s, [[tree parser]]s, and combined [[lexer-parser]]s. Parsers can automatically generate [[abstract syntax tree]]s 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.
 
Míg maga az ANTLR szabadon hozzáférhető, a felhasználói dokumentációja nem az. Az ANTLR kézikönyv (''The Definitive ANTLR Reference'') kereskedelemben kapható. A szabadon hozzáférhető dokumentáció néhány bevezetőre, példakódra és alapvető API-leírásra korlátozódik.
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.
 
Az [[Eclipse]] fejlesztőkörnyezethez több ANTLR nyelvtant támogató plugin elérhető: a bizonyos feltételek mellett ingyenes ANTLR Studio, illetve a [[SourceForge]]-ról letölthető [http://antlreclipse.sourceforge.net/ 2] és [http://antlrv3ide.sourceforge.net/ 3] pluginek.
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.<ref>http://www.antlr.org/pipermail/antlr-interest/2004-February/006340.html</ref>
 
While ANTLR itself is free, however, the documentation necessary to use it is not. The ANTLR manual is a commercial book, ''The Definitive ANTLR Reference''. Free documentation is limited to a handful of tutorials, code examples, and very basic API listings.
 
Several plugins have been developed for the [[Eclipse IDE|Eclipse development environment]] to support the ANTLR grammar. There is [[ANTLR Studio]], a proprietary product, as well as the ANTLR [http://antlreclipse.sourceforge.net/ 2] and [http://antlrv3ide.sourceforge.net/ 3] plugins for Eclipse hosted on [[SourceForge]].
 
== See also ==
[[:Kategória|Szabad szoftverek]]
 
* [[JavaCC]]
* [[SableCC]]
* [[Coco/R]]
* [[Modular Syntax Definition Formalism]]
* [[Parboiled (Java)]]
 
== Hivatkozások ==
58 ⟶ 45 sor:
| first1=Terence |last1=Parr |date=May 17, 2007
| title=The Definitive Antlr Reference: Building Domain-Specific Languages |edition=1st
| publisher=[[Pragmatic Bookshelf]] |pages=376 |isbn=0-9787392-5-6
| url=http://www.pragprog.com/titles/tpantlr/the-definitive-antlr-reference }}
* {{citation
| first1=Terence |last1=Parr |date=December, 2009
| title=Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages
| edition=1st |publisher=[[Pragmatic Bookshelf]] |pages=374 |isbn=978-1-934356-45-6
| url=http://www.pragprog.com/titles/tpdsl/language-implementation-patterns }}
{{Refend}}
 
== Linkek ==
* {{official website|[http://www.antlr.org}} ANTLR honlap]
* [http://www.antlr.org/works ANTLRWorks]
* [http://www.placidsystems.com/antlrstudio.aspx ANTLR Studio]
* [http://www.sharpplus.com/antlr-delphi-3-1 ANTLR For Delphi Target]
* [http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/antlr/antlr.html ANTLR tutorial] at the- University of Birmingham
* ForAz backgroundelméleti onháttérről thelásd theory, see articles from theaz ANTLR pageshonlapját, e.gpl. T. J. Parr, R. W. Quong, [http://www.antlr.org/article/1055550346383/antlr.pdf ''ANTLR: A Predicated-LL(k) Parser Generator''], Software—Practice and Experience, Vol. 25(7), 789–810 (July 1995)
 
== Fordítás ==
80 ⟶ 67 sor:
[[Kategória:Számítógép-programozás]]
[[Kategória:Formális nyelvek]]
[[:Kategória|:Szabad szoftverek]]
 
__NOTOC__
 
[[en:ANTLR]]
A lap eredeti címe: „https://hu.wikipedia.org/wiki/ANTLR