Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    FLAT::Legacy::FA::RE 0.1

    Download button

    No screenshots available
    Downloads: 470  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brett D. Estrade | More programs
    Perl Artistic License / FREE
    July 25th, 2007, 22:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    FLAT::Legacy::FA::RE description

    FLAT::Legacy::FA::RE is a regular expression base class.

    FLAT::Legacy::FA::RE is a regular expression base class.

    SYNOPSIS

    use FLAT::Legacy::FA::RE;
    use FLAT::Legacy::FA::NFA;
    my $re = RE->new();
    $re->set_re('a|b|(hi)*');
    my $nfa = $re->to_nfa();
    print $nfa->info(); # see stuff on NFA
    my $dfa = $nfa->to_dfa();
    print $dfa->info(); # see stuff on DFA
    my @removed = $dfa->minimize();
    print $dfa->info(); # see stuff on minimized DFA
    print "Removed ".($#removed+1)." statesn";

    This module implements a regular expression parser, and supports the conversion of a RE to a deterministic finite automata. A homegrown recursive descent parser is used to build the parse tree, and the method used to conver the regular expression to a DFA uses no intermediate NFA.
    Recursive Descent-safe Regex Grammar:

    R -> O

    O -> CO'

    O' -> '|' CO' | epsilon

    C -> SC'

    C' -> .SC' | epsilon

    S -> LS'

    S' -> *S' | epsilon

    L -> a | b | c |..| 0 | 1 | 2 |..| (R) | epsilon

    Terminal symbols: a,b,c,..,z,0,1,2,..,9,|,*,(,)

    NOTE: Concatenation operator, '.', is not a terminal symbol and should not be included in the regex

    FAQ: Q: Does this support Perl regular expressions?
    A: No, just the regular expression using the terminal symbols listed above.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    regular expression | expression parser | Perl module | FLAT::Legacy::FA::RE | regular | expression

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM