org.vishia.zbnf
Class Zbnf2Xml

java.lang.Object
  extended by org.vishia.zbnf.Zbnf2Xml

public class Zbnf2Xml
extends java.lang.Object

This class contains a public static main routine callable from command line and a execute-routine callable form eclipse-ANT (TODO) to convert Plain Syntactical Textfiles via ZBNF to xml-output, using the vishia-ZBNF-parser.
To invoke the conversion use the commandline version with parameters see help output getting by invoking without parameters.
short description: invoke:

 >java cp $CLASSPATH vishia.strincScan.SBNF2Xml -iINPUT -sSBNF -yXMLOUTPUT


Nested Class Summary
(package private)  class Zbnf2Xml.CmdLine
          The inner class CmdLine helps to evaluate the command line arguments and show help messages on command line.
static interface Zbnf2Xml.PrepareXmlNode
           
 
Field Summary
(package private)  java.util.List<java.lang.String> additionalSemantic
           
(package private)  java.nio.charset.Charset encoding
          Encoding given from cmdline argument -x, -y or -z
(package private)  Report report
          Help reference to name the report output.
(package private)  java.lang.String sFileIn
          Cmdline-argument, set on -i option.
(package private)  java.lang.String sFileOut
          Cmdline-argument, set on -o option.
(package private)  java.lang.String sFileSyntax
          Cmdline-argument, set on -y option.
 
Constructor Summary
Zbnf2Xml()
          Constructor of the main class.
Zbnf2Xml(java.lang.String input, java.lang.String syntax, java.lang.String output, Report report)
           
 
Method Summary
 boolean execute()
           
static void main(java.lang.String[] args)
          main started from java
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sFileIn

java.lang.String sFileIn
Cmdline-argument, set on -i option. Inputfile to to something. :TODO: its a example.


sFileSyntax

java.lang.String sFileSyntax
Cmdline-argument, set on -y option. Inputfile to to something. :TODO: its a example.


sFileOut

java.lang.String sFileOut
Cmdline-argument, set on -o option. Outputfile to output something. :TODO: its a example.


encoding

java.nio.charset.Charset encoding
Encoding given from cmdline argument -x, -y or -z


additionalSemantic

java.util.List<java.lang.String> additionalSemantic

report

Report report
Help reference to name the report output.

Constructor Detail

Zbnf2Xml

public Zbnf2Xml()
Constructor of the main class. The command line arguments are parsed here. After them the execute class is created as composition of Zbnf2Xml.


Zbnf2Xml

public Zbnf2Xml(java.lang.String input,
                java.lang.String syntax,
                java.lang.String output,
                Report report)
Method Detail

main

public static void main(java.lang.String[] args)
main started from java


execute

public boolean execute()