Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1
Compare

Lepl is a parser for Python 3 (mostly backwards compatible with 2.6). Features: * Parsers are Python code, defined in Python itself. No separate grammar is necessary. * Friendly syntax using Python's operators allows grammars to be defined in a declarative ... [More] style close to BNF. * Integrated, optional lexer simplifies handling whitespace. * Built-in AST support with support for iteration, traversal and re-writing. * Generic, pure-Python approach supports parsing a wide variety of data including bytes (Python 3+ only). * Well documented and easy to extend. * Unlimited recursion depth (co-routines); memoisation; backtracking; etc - basically, it's recursive descent, done right. [Less]

0
 
  0 reviews  |  1 user  |  14,189 lines of code  |  2 current contributors  |  Analyzed about 2 years ago
 
 

Generate parsers with ease, using a graphical user interface, or console. Design your parsers graphically or by using standard regular expressions and BNF syntax similar to lex/yacc. Generated parsers can be in C or C++.

5.0
 
  0 reviews  |  1 user  |  2,785 lines of code  |  0 current contributors  |  Analyzed 9 days ago
 
 

With Perl 5.10, regular expression engines become pluggable. This module re::engine::LPEG supplies the Lua Parsing Expression Grammar.

0
 
  0 reviews  |  0 users  |  523 lines of code  |  0 current contributors  |  Analyzed 4 days ago
 
 

yrx

Compare

News09 Sep 2008: New source tarball and Windows pre-compiled executables. Checked with valgrind for memory leak. Tests are still to be fixed! 25 Aug 2008: Back to the NFA approach! Also, now every modifier is greedy. The expressions like ".+z" or "\d+3" will never succeed as the ... [More] first term of the expression will eat all the available characters. Current version under SVN supports: Captures (up to 8) Back reference to captures (e.g. "{a+)b\1" matches aba, aabaa, etc ) Negated expressions that match 0 characters of the input. 07 Feb 2008: Stuck on an issue on the determinization step. The algorithm described in the PDF and implemented in the code succeedn on (a*)(a)a but fails on ([ab]*)(a)([ab]*). I devised a different algorithm, closely following the standard subset construction, that succeeds on ([ab]*)(a)([ab]*) but, alas, fails on (a*)(a)a ! I guess I have to take a step back an rethink the whole thing. For those interested, the problem is to determine when a set of states needs to be merged again, even if they've been already, because of a different tags assignment. Any suggestion is greatly welcome! 04 Feb 2008: New tarball and Windows binary. This version produces C code! Use "sh mktest 'expr1' 'expr2' ..." to create a test program named x (or x.exe). Requires gcc. 31 Jan 2008: New tarball and Windows binary. Able to generate ASM-like code. Also performs some optimization. 25 Jan 2008: New tarball and Windows binary. 21 Jan 2008: Discussion group and SVN commits group created 20 Jan 2008: Posted a request for comment about the YRX approach on comp.compilers http://compilers.iecc.com/comparch/article/08-01-051 About YRXYRX is a tool to ease the creation of lexical scanners similar to re2C. It's in its early stage, any comment or feedback is appreciated. [Less]

0
 
  0 reviews  |  0 users  |  6,431 lines of code  |  0 current contributors  |  Analyzed 9 days ago
 
 

What is repearser?The 'repearser' (Repeatable Data Parser) uses regular expressions' power for data extraction from semi-uniform textual arrays like HTML tables. It has very specialized language for define what is 'the data' and can perform contextual and dictionary-based ... [More] searches. Get the source and examplesUse the SVN, or download last revision of the script directly. Ой, а что это такое?Это такой скрипт для извлечения данных из относительно регулярных текстов, например, HTML-ных таблиц. При помощи собственного специализированного языка можно описать, где, как, и какие именно данные искать. Где взять и как юзать?Исходники и примеры использования можно взять через SVN, или же можно скачать последнюю версию скрипта напрямую отсюда. [Less]

0
 
  0 reviews  |  0 users  |  484 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.