JetPAG
JetPAG (Jet Parser Auto-Generator) is an open-source LL(k) parser and lexical analyzer generator, licensed under the GNU General Public License.[src] It is a personal work of Tareq H.[src] Sharafy, and is currently at final beta stages of development.[src]
JetPAG (Jet Parser Auto-Generator) is an open-source LL(k) parser and lexical analyzer generator, licensed under the GNU General Public License.[src] It is a personal work of Tareq H.[src] Sharafy, and is currently at final beta stages of development.[src] ==History== Tareq started JetPAG as a small program written for practice purposes only.[src] Soon when it started expanding many goals were added rapidly, and it was obvious that JetPAG is worthy being a complete project.[src] Real development of JetPAG started in late 2005, targeting a complete framework for a powerful recursive descent lexical analyzer and parser generator with emphasis on ease of use, code readability and high performance of generated code.[src] After a long period of in-house development and testing, the first development package of JetPAG was released through SourceForge on 18 November 2006.[src] Development of JetPAG is current at beta stage, current version is 0.6.1.[src] The development was delayed from mid-2007 until early 2009 but resumed after.[src] ==Overview== Jetpag incorporates several modules: the front end, the analyzers and the code generators.[src] The front end accepts the grammar metalanguages as an input.[src] The analyzers mainly perform two operations through tree traversal.[src] The first is calculating strong lookahead sets for the elements in the grammar and the second is constructing lookahead paths from the lookahead sets.[src] Lookahead paths group, factorize and perform many enhancements and optimizations to lookahead sets using special analysis.[src] From lookahead paths, lookahead sets are transformed to a nested tree form, gaining a great overall efficiency and improvement in most cases.[src] Code generators generate source code for recognizers compatible with the input grammars based on them along with information collected from the analyzers.[src] Currently, JetPAG generates source code in C++ only.[src] The nature of JetPAG's metalanguage and framework makes it easy and simple to integrate generated recognizers into larger applications.[src] JetPAG also includes some facilities in the provided framework to aid developers with small utilities and save development time from many minimal language recognition tasks.[src] ==JetPAG grammars== JetPAG's grammars are written in a meta language based on the EBNF form and regular expressions, with extensive additions and tweaks.[src] The meta language of JetPAG grammars was designed to be maximally flexible handle both simple grammars and large, complicated ones easily.[src] Parsers and lexical analyzers are similarly defined and generated for simplicity and ease of use.[src] This is a simple example of a grammar for a basic calculator: grammar Calc: parser CalcP: expression: multiplicative ( '+' multiplicative | '-' multiplicative )* ; multiplicative: factor ( '*' factor | '/' factor )* ; factor: INT | '(' expression ')' ; scanner CalcS: INT: '0'-'9'+; PLUS: '+'; MINUS: '-'; STAR: '*'; SLASH: '/'; LP: '('; RP: ')'; ==See also== LL recognizers ANTLR JavaCC Coco/R ==External links== JetPAG Homepage JetPAG at SourceForge[src]
26 sentences · 26 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"JetPAG." encyclopegia.org, 2026, https://encyclopegia.org/wiki/jetpag. Accessed 30 November 2026.
Chicago
"JetPAG." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/jetpag.
APA
encyclopegia.org. (2026). JetPAG. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/jetpag
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2006-11-18 | Wikipedia |