Skip to content
Snippets Groups Projects
user avatar
Anders Nilsson authored
197b3473
History
ABOUT

The main purpose of the Schemacompiler is to automatically generate
compiler front-ends for different XML dialects. Given an XML schema,
the schemacompiler will generate an abstract grammar and some aspect
code for JastAdd, as well as a JavaCC parser description. The
generated compiler may then be extended with more aspects, and
possibly new abstract grammar rules, to form a complete compiler.


USAGE

$ java GenCompiler [-d dir] [-o outfile] schema

options:
        -d dir          directory where generated files are put. 
                        Will be created if not already exists.
                        Default is 'x3d'.
                        
        -o outfile      Name for generated grammar files.
                        Default is 'x3d'.

'$ java GenCompiler examples/x3d-3.0.xsd' will generate a compiler for
x3d in the x3d subdirectory. x3d/build.xml should be studied as an
example on how to use the generated code.


AUTHOR

Anders Nilsson <anders.nilsson@cs.lth.se>