EnglishFrenchSpanish

OnWorks favicon

stag-parsep - Online in the Cloud

Run stag-parsep in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command stag-parsep that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


stag-parse - parses a file and fires events (e.g. sxpr to xml)

SYNOPSIS


# convert XML to IText
stag-parse -p xml -w itext file1.xml file2.xml

# use a custom parser/generator and a custom writer/generator
stag-parse -p MyMod::MyParser -w MyMod::MyWriter file.txt

DESCRIPTION


script wrapper for the Data::Stag modules

feeds in files into a parser object that generates nestarray events, and feeds the events
into a handler/writer class

ARGUMENTS


-p|parser FORMAT
FORMAT is one of xml, sxpr or itext, or the name of a perl module

this is the class that parsers the input file(s) and generates stag events

xml assumed as default

-w|writer FORMAT
FORMAT is one of xml, sxpr or itext, or the name of a perl module

this is the class that catches the events thrown by the parser; it can be any class,
but the class is typically a writer

xml assumed as default

-o|out FILE
the writer will use this file (defaults to STDOUT)

-e|errf FILE
file to store parse error handler output

-errhandler FORMAT/MODULE
FORMAT is one of xml, sxpr or itext, or the name of a perl module

all parse error events go to this module

-r|root NODE_NAME
if this is specified, NODE_NAME becomes the root of the stag tree, and anything that
was previously the root is placed below this.

this happens automatically if more than one file is parsed (because there can only be
one tree root)

-color
Works only if the output handler is able to provide ASCII-colors (currently supported
for itext and xml)

Use stag-parsep online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad