stag-parse.pl - parses a file and fires events (e.g. sxpr to xml)
# convert XML to IText stag-parse.pl -p xml -w itext file1.xml file2.xml
# use a custom parser/generator and a custom writer/generator stag-parse.pl -p MyMod::MyParser -w MyMod::MyWriter file.txt
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
this is the class that parsers the input file(s)
and generates stag
events
xml assumed as default
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
all parse error events go to this module
this happens automatically if more than one file is parsed (because there can only be one tree root)
This script is a wrapper for the method
Data::Stag->parse()