Main > Free Download Search >

Free file parser software for linux

file parser

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 857
Makefile::Parser 0.11

Makefile::Parser 0.11


Makefile::Parser is a Simple Parser for Makefiles. more>>
Makefile::Parser is a Simple Parser for Makefiles.

SYNOPSIS

use Makefile::Parser;

$parser = Makefile::Parser->new;

# Equivalent to ->parse(Makefile);
$parser->parse or
die Makefile::Parser->error;

# Get last value assigned to the specified variable CC:
print $parser->var(CC);

# Get all the variable names defined in the Makefile:
@vars = $parser->vars;
print join( , sort @vars);

@roots = $parser->roots; # Get all the "root targets"
print $roots[0]->name;

@tars = $parser->targets; # Get all the targets
$tar = join("n", $tars[0]->commands);

# Get the default target, say, the first target defined in Makefile:
$tar = $parser->target;

$tar = $parser->target(install);
# Get the name of the target, say, install here:
print $tar->name;

# Get the dependencies for the target install:
@depends = $tar->depends;

# Access the shell command used to build the current target.
@cmds = $tar->commands;

# Parse another file using the same Parser object:
$parser->parse(Makefile.old) or
die Makefile::Parser->error;

# Get the target who is specified by variable EXE_FILE
$tar = $parser->target($parser->var(EXE_FILE));

This is a parser for Makefiles. At this very early stage, the parser only supports a limited set of features, so it may not recognize some advanced features provided by certain make tools like GNU make. Its initial purpose is to provide basic support for another module named Makefile::GraphViz, which is aimed to render the building process specified by a Makefile using the amazing GraphViz library. The Make module is not satisfactory for this purpose, so I decided to build one of my own.

<<less
Download (0.018MB)
Added: 2006-10-24 License: Perl Artistic License Price:
1098 downloads
RDF::Simple::Parser 0.3

RDF::Simple::Parser 0.3


RDF::Simple::Parser is a simple RDF/XML parser that reads a string containing RDF in XML. more>>
RDF::Simple::Parser is a simple RDF/XML parser that reads a string containing RDF in XML.

SYNOPSIS

my $uri = http://www.zooleika.org.uk/bio/foaf.rdf;
my $rdf = LWP::Simple::get($uri);

my $parser = RDF::Simple::Parser->new(base => $uri)
my @triples = $parser->parse_rdf($rdf);

# returns an array of array references which are triples

<<less
Download (0.017MB)
Added: 2006-09-20 License: Perl Artistic License Price:
1129 downloads
iCal::Parser 1.14

iCal::Parser 1.14


iCal::Parser is a Perl module to parse iCalendar files into a data structure. more>>
iCal::Parser is a Perl module to parse iCalendar files into a data structure.

SYNOPSIS

use iCal::Parser

my $parser=iCal::Parser->new();
my $hash=$parser->parse($file);

$parser->parse($another_file);
my $combined=$parser->calendar;

my $combined=iCal::Parser->new->parse(@files);
my $combined=iCal::Parser->new->parse_files(@files);
my $combined=iCal::Parser->new->parse_strings(@strings);

This module processes iCalendar (vCalendar 2.0) files as specified in RFC 2445 into a data structure. It handles recurrences (RRULEs), exclusions (EXDATEs), event updates (events with a RECURRENCE-ID), and nested data structures (ATTENDEES and VALARMs). It currently ignores the VTIMEZONE, VJOURNAL and VFREEBUSY entry types.

The data structure returned is a hash like the following:

{
calendars=>[%cal, ...],
events=>{yyyy=>{mm=>{dd}=>{UID=>%event}}
todos=>[%todo, ...]
}

That is, it contains an array of calendar hashes, a hash of events key by year=>month=>day=>eventUID, and an array of todos.

Calendars, events and todos are "rolled up" version os the hashes returned from Text::vFile::asData, with dates replaced by DateTime objects.

During parsing, events in the input calendar are expanded out into multiple events, one per day covered by the event, as follows:
If the event is a one day "all day" event (in ical, the event is 24hrs long, starts at midnight on the day and ends a midnight of the next day), it contains no hour field and the allday field is set to 1.

If the event is a recurrence (RRULE), one event per day is created as per the RRULE specification.

If the event spans more than one day (the start and end dates are on different days, but does not contain an RRULE), it is expanded into multiple events, the first events end time is set to midnight, subsequent events are set to start at midnight and end at midnight the following day (same as an "allday" event, but the allday field is not set), and the last days event is set to run from midnight to the end time of the original multi-day event.

If the event is an update (it contains a RECURRENCE-ID), the original event is updated. If the referenced event does not exist (e.g., it was deleted after the update), then the event is added as a new event.
An example of each hash is below.

<<less
Download (0.028MB)
Added: 2007-04-07 License: Perl Artistic License Price:
930 downloads
MIME::Parser 5.420

MIME::Parser 5.420


MIME::Parser is a experimental class for parsing MIME streams. more>>
MIME::Parser is a experimental class for parsing MIME streams.

SYNOPSIS

Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.
Ready? Ok...

Basic usage examples

### Create a new parser object:
my $parser = new MIME::Parser;

### Tell it where to put things:
$parser->output_under("/tmp");

### Parse an input filehandle:
$entity = $parser->parse(*STDIN);

### Congratulations: you now have a (possibly multipart) MIME entity!
$entity->dump_skeleton; # for debugging

Examples of input

### Parse from filehandles:
$entity = $parser->parse(*STDIN);
$entity = $parser->parse(IO::File->new("some command|");

### Parse from any object that supports getline() and read():
$entity = $parser->parse($myHandle);

### Parse an in-core MIME message:
$entity = $parser->parse_data($message);

### Parse an MIME message in a file:
$entity = $parser->parse_open("/some/file.msg");

### Parse an MIME message out of a pipeline:
$entity = $parser->parse_open("gunzip - < file.msg.gz |");

### Parse already-split input (as "deliver" would give it to you):
$entity = $parser->parse_two("msg.head", "msg.body");

Examples of output control

### Keep parsed message bodies in core (default outputs to disk):
$parser->output_to_core(1);

### Output each message body to a one-per-message directory:
$parser->output_under("/tmp");

### Output each message body to the same directory:
$parser->output_dir("/tmp");

### Change how nameless message-component files are named:
$parser->output_prefix("msg");

Examples of error recovery

### Normal mechanism:
eval { $entity = $parser->parse(*STDIN) };
if ($@) {
$results = $parser->results;
$decapitated = $parser->last_head; ### get last top-level head
}

### Ultra-tolerant mechanism:
$parser->ignore_errors(1);
$entity = eval { $parser->parse(*STDIN) };
$error = ($@ || $parser->last_error);

### Cleanup all files created by the parse:
eval { $entity = $parser->parse(*STDIN) };
...
$parser->filer->purge;

Examples of parser options

### Automatically attempt to RFC-1522-decode the MIME headers?
$parser->decode_headers(1); ### default is false

### Parse contained "message/rfc822" objects as nested MIME streams?
$parser->extract_nested_messages(0); ### default is true

### Look for uuencode in "text" messages, and extract it?
$parser->extract_uuencode(1); ### default is false

### Should we forgive normally-fatal errors?
$parser->ignore_errors(0); ### default is true
Miscellaneous examples
### Convert a Mail::Internet object to a MIME::Entity:
@lines = (@{$mail->header}, "n", @{$mail->body});
$entity = $parser->parse_data(@lines);

<<less
Download (0.38MB)
Added: 2006-11-17 License: Perl Artistic License Price:
1073 downloads
Test-Parser 1.2

Test-Parser 1.2


Test::Parser is a collection of parsers for different test output file formats. more>>
Test::Parser is a collection of parsers for different test output file formats. These parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.

Test-Parser can also export tests in SpikeSources TRPI test description XML language.

<<less
Download (0.053MB)
Added: 2006-05-04 License: GPL (GNU General Public License) Price:
1268 downloads
PandaLex PDF Parser 0.5

PandaLex PDF Parser 0.5


PandaLex PDF Parser is a flex and bison parser for PDF documents. more>>
PandaLex is the PDF parsing code from Panda, which has been split into its own project to increase its utility.

It is a flex and bison description of the PDF specification, which allows programmers to define callbacks to handle different document elements.
<<less
Download (0.38MB)
Added: 2005-05-04 License: GPL (GNU General Public License) Price:
1639 downloads
CQL::Parser 1.0

CQL::Parser 1.0


CQL::Parser is a Perl module that compiles CQL strings into parse trees of Node subtypes. more>>
CQL::Parser is a Perl module that compiles CQL strings into parse trees of Node subtypes.

SYNOPSIS

use CQL::Parser;
my $parser = CQL::Parser->new();
my $root = $parser->parse( $cql );

CQL::Parser provides a mechanism to parse Common Query Language (CQL) statements. The best description of CQL comes from the CQL homepage at the Library of Congress http://www.loc.gov/z3950/agency/zing/cql/

CQL is a formal language for representing queries to information retrieval systems such as web indexes, bibliographic catalogs and museum collection information. The CQL design objective is that queries be human readable and human writable, and that the language be intuitive while maintaining the expressiveness of more complex languages.

A CQL statement can be as simple as a single keyword, or as complicated as a set of compoenents indicating search indexes, relations, relational modifiers, proximity clauses and boolean logic. CQL::Parser will parse CQL statements and return the root node for a tree of nodes which describes the CQL statement. This data structure can then be used by a client application to analyze the statement, and possibly turn it into a query for a local repository.

Each CQL component in the tree inherits from CQL::Node and can be one of the following: CQL::AndNode, CQL::NotNode, CQL::OrNode, CQL::ProxNode, CQL::TermNode, CQL::PrefixNode. See the documentation for those modules for their respective APIs.

Here are some examples of CQL statements:

george
dc.creator=george
dc.creator="George Clinton"
clinton and funk
clinton and parliament and funk
(clinton or bootsy) and funk
dc.creator="clinton" and dc.date="1976"

<<less
Download (0.019MB)
Added: 2007-06-20 License: Perl Artistic License Price:
856 downloads
Simple Plain Xml Parser 0.4

Simple Plain Xml Parser 0.4


Simple Plain Xml Parser is a simple and plain xml parser written in C++. more>>
Simple Plain Xml Parser (spxml) is a simple and plain xml parser written in C++. spxml supports pull-model and DOM-model xml parsing.
spxml is a stream-oriented parser. As the user passes it chunks of the input XML document, spxml identifies elements, character data or other entities and return the appropriate event. The size of the chunks is controlled by the user; chunks can range from one byte to the whole XML document.
spxml pull parser does not need to be told when the document is ended. On the contrary, spxml pull parser will tell us when it has finished parsing a root ( or other ) element. spxml pull parser can therefore safely read from pipes, can process sequences of XML documents without extra delimiters, and can handle selected parts of a document.
spxml DOM parser parses an XML document, and builds a DOM tree that can be read, modified, and saved.
Enhancements:
- This release adds UTF-8 encoding and processing instruction support.
<<less
Download (0.023MB)
Added: 2007-07-22 License: GPL (GNU General Public License) Price:
825 downloads
Blatte::Parser 0.9.4

Blatte::Parser 0.9.4


Blatte::Parser is a Perl module that contains a parser for Blatte syntax. more>>
Blatte::Parser is a Perl module that contains a parser for Blatte syntax.

SYNOPSIS

use Blatte::Parser;

$parser = new Blatte::Parser();

$perl_expr = $parser->parse(INPUT);

or

$parsed_expr = $parser->expr(INPUT);
if (defined($parsed_expr)) {
$perl_expr = $parsed_expr->transform();
}

METHODS

$parser->parse(INPUT)

Parses the first Blatte expression in INPUT and returns the corresponding Perl string, or undef if an error occurred.

INPUT may be a string or a reference to a string. If its the latter, then after a successful parse, the parsed expression will be removed from the beginning of the string.

$parser->expr(INPUT)

Like parse(), except the result is not converted to Perl; its left in Blattes internal parse-tree format, which uses the Blatte::Syntax family of objects.

$parser->eof(INPUT)

Tests INPUT for end-of-file. Leading whitespace is removed from INPUT with consume_whitespace and, if nothing remains, true is returned, else undef.

<<less
Download (0.031MB)
Added: 2007-04-20 License: Perl Artistic License Price:
917 downloads
XML::Parser 2.34

XML::Parser 2.34


XML::Parser is a perl module for parsing XML documents. more>>
XML::Parser is a perl module for parsing XML documents.

SYNOPSIS

use XML::Parser;

$p1 = new XML::Parser(Style => Debug);
$p1->parsefile(REC-xml-19980210.xml);
$p1->parse( Hello World );

# Alternative
$p2 = new XML::Parser(Handlers => {Start => &handle_start,
End => &handle_end,
Char => &handle_char});
$p2->parse($socket);

# Another alternative
$p3 = new XML::Parser(ErrorContext => 2);

$p3->setHandlers(Char => &text,
Default => &other);

open(FOO, xmlgenerator |);
$p3->parse(*FOO, ProtocolEncoding => ISO-8859-1);
close(FOO);

$p3->parsefile(junk.xml, ErrorContext => 3);

This module provides ways to parse XML documents. It is built on top of XML::Parser::Expat, which is a lower level interface to James Clarks expat library. Each call to one of the parsing methods creates a new instance of XML::Parser::Expat which is then used to parse the document.

Expat options may be provided when the XML::Parser object is created. These options are then passed on to the Expat object on each parse call. They can also be given as extra arguments to the parse methods, in which case they override options given at XML::Parser creation time.

The behavior of the parser is controlled either by "Style" and/or "Handlers" options, or by "setHandlers" method. These all provide mechanisms for XML::Parser to set the handlers needed by XML::Parser::Expat. If neither Style nor Handlers are specified, then parsing just checks the document for being well-formed.

When underlying handlers get called, they receive as their first parameter the Expat object, not the Parser object.

<<less
Download (0.22MB)
Added: 2006-06-14 License: Perl Artistic License Price:
1235 downloads
Nmap Parser 1.11

Nmap Parser 1.11


Nmap Parser is a Perl module to ease the pain of developing scripts or collecting network information from nmap scans. more>>
Nmap Parser is a module that implements a interface to the information contained in an nmap scan. It is implemented by parsing the xml scan data that is generated by nmap.
This will enable anyone who utilizes nmap to quickly create fast and robust security scripts that utilize the powerful port scanning abilities of nmap.
Enhancements:
- Parsing of distance information was added. Ignoring of taskend, taskbegin, and taskprogress information was added.
- Tests for nmap 4.20 were added.
- The license was changed to the MIT-style.
- The "always null" bug for the service->protocol call was fixed.
<<less
Download (0.035MB)
Added: 2007-06-15 License: GPL (GNU General Public License) Price:
862 downloads
Test::Parser 1.1

Test::Parser 1.1


Test::Parser is a collection of parsers for different test output file formats. more>>
Test::Parser is a collection of parsers for different test output file formats.
These parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test::Parser can also export tests in SpikeSources TRPI test description XML language.
Installation:
To install the script and man pages in the standard areas, give the sequence of commands
$ perl Makefile.PL
$ make
$ make test
$ make install # you probably need to do this step as superuser
If you want to install the script in your own private space, use
$ perl Makefile.PL PREFIX=/home/joeuser
INSTALLMAN1DIR=/home/joeuser/man/man1
INSTALLMAN3DIR=/home/joeuser/man/man3
$ make
$ make test
$ make install # can do this step as joeuser
Note that `make test` does nothing interesting.
Enhancements:
- This release improves the LTP parser and adds a parse_ltp script that prints a tabular summary of the PASS/FAILs of test cases.
<<less
Download (0.044MB)
Added: 2006-04-07 License: GPL (GNU General Public License) Price:
1295 downloads
C++ WSDL Parser 1.9.3

C++ WSDL Parser 1.9.3


C++ WSDL Parser is an efficient C++ Web services library. more>>
C++ WSDL Parser is an efficient C++ Web services library that includes a standards compliant WSDL parser API, a Schema parser and validator, an XML parser and serializer, and an API for dynamically inspecting and invoking WSDL Web services.
Enhancements:
- Many WSDLs can now be dynamically invoked.
- Added documentation (doxygen for the API).
- Better error reporting when types are found missing.
<<less
Download (0.56MB)
Added: 2005-10-06 License: LGPL (GNU Lesser General Public License) Price:
1483 downloads
DKP Log Parser 1.4.1

DKP Log Parser 1.4.1


DKP Log Parser (DKPLP) is a tool designed to help administrate time-based and/or event-based DKP reward system. more>>
DKP Log Parser (DKPLP) is a tool designed to help administrate time-based and/or event-based DKP reward system in conjunction with EQDKP (or any other DKP software implementing a required interface). The project is configurable to be compatible with any game that produces any kind of log. There are currently predefined pattern sets for EverQuest, EverQuest2 and World of Warcraft (with CT RaidTracker). If you are playing another game then you can either write new patterns for it yourself, or ask the the forum (be sure to include a sample log though).
DKP Log Parsers goal is to reduce the administrative overhead of running complex DKP reward system, by parsing the logs, calculating the DKP per person and sending the results (the loot, raids, participants and DKP) directly to EQDKP (or other DKP software). Its widely configurable, allowing it to be used by the many variations of zero-sum and time-based DKP around.
Overview of how DKP Log Parser is used
DKP Log Parser is a software program run on a users desktop (Windows or Unix). It reads in the contents of a game log once a raid has been completed, parses all the information and displays the data for administrators to edit. Once happy with the information, the administrator uploads the data from their PC to the DKP Log Parser plugin on an EQDKP webserver (or any other server implementing the required DKPLP interface), where it can be viewed by all members of the DKP system.
Main features:
- Inbuilt support for Everquest, Everquest II, World of Warcrafts CT RaidTracker plugin, and Ventrilo.
- Extensible enough to be able to handle most logs.
- Time based dkp:
- Accrue DKP by minute, by interval, by event or by a combination of these.
- Zero-sum DKP can be enabled (by minute or by interval) or disabled.
- Tag certain intervals as being more or less important by using weightings to adjust the DKP.
- Data export:
- Upload data to for example EQDKP, select from a number of different data representations.
- Export to plain text
- Export to BB forum markup
- Export to wiki markup
- Export to XML
- Member list and alt character list synchronises with server, making it easy to share setups with other users.
- Optional autocompletion database to remember item names and values between sessions.
- Preprocessors available to perform other operations on the log file. The skys the limit!
<<less
Download (4.2MB)
Added: 2007-06-28 License: GPL (GNU General Public License) Price:
850 downloads
Shell::Parser 0.04

Shell::Parser 0.04


Shell::Parser is a simple shell script parser. more>>
Shell::Parser is a simple shell script parser.

SYNOPSIS

use Shell::Parser;

my $parser = new Shell::Parser syntax => bash, handlers => {

};
$parser->parse(...);
$parser->eof;

This module implements a rudimentary shell script parser in Perl. It was primarily written as a backend for Syntax::Highlight::Shell, in order to simplify the creation of the later.

<<less
Download (0.017MB)
Added: 2007-04-06 License: Perl Artistic License Price:
934 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5