August 19 2011
Language: ZCode:: Parser is a Perl module that reads and analyzes a code file -Z in a large Perl hash. Language: ZCode:: Parser is a Perl module that reads and analyzes a code file Z in a large Perl hash.SYNOPSIS # Create a pure Perl parser my $ pparse = New language: ZCode:: Parser "Perl"; # if they did not. "Z5" at the end, still find $ infile = $ pparse-> find_zfile ($ infile) | | exit; # Read in the file, store it in memory $ pparse-> read_memory ($ infile) # Parse the header file $ Z-pparse-> parse_header () # Get the subroutines in the file (LZ:: Parser:: Objects routine) my @ subs = $ pparse - > find_subs ($ infile) to find where the beginning and end of sub-programs, you can either rely on an external call to TxD, in 1992, a C program available ifarchive.org or a pure Perl version.Everything the rest is pure Perl. new (class, how to find submarines, args ...) This is a factory method. Called with "TXD Perl" or "" (or "txd ') as arguments, it will create analyzers LZ:: Parser:: Perl or LZ:: Parser:: TXD, which are subclasses of LZ: : Parser:: Generic. new method "What class' will be called with any other on args passed.