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.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Language::Zcode::Parser 0.8

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Language::Zcode::Parser team | More programs
    Perl Artistic License / FREE
    July 5th, 2007, 12:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Language::Zcode::Parser description

    A Perl module that reads and parses a Z-code file into a big Perl hash.

    Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash.

    SYNOPSIS

    # Create a Pure Perl Parser
    my $pParser = new Language::Zcode::Parser "Perl";

    # If they didn't put ".z5" at the end, find it anyway
    $infile = $pParser->find_zfile($infile) || exit;

    # Read in the file, store it in memory
    $pParser->read_memory($infile);

    # Parse header of the Z-file
    $pParser->parse_header();

    # Get the subroutines in the file (LZ::Parser::Routine objects)
    my @subs = $pParser->find_subs($infile);


    For finding where the subroutines start and end, you can either depend on an external call to txd, a 1992 C program available at ifarchive.org, or a pure Perl version.

    Everything else is done in pure Perl.

    new (class, how to find subs, args...)

    This is a factory method. Called with 'Perl' or 'TXD' (or 'txd') as arguments, it will create Parsers of LZ::Parser::Perl or LZ::Parser::TXD, which are subclasses of LZ::Parser::Generic.

    That class' 'new' method will be called with any other passed-in args.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    parse Z-code | Perl hash | Perl module | Language | parse | Z-code

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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