This section is about the standalone grammar file converter of the XDK
(xdkconv
). The grammar file converter takes a source grammar
file and converts it into a destination grammar file. The grammar
file language into which the destination grammar file is converted
depends on its suffix.
The source grammar file can be one of the following:
ul
)
xml
)
ilp
)
ozf
)
And the destination grammar file can be one of the following:
ul
)
xml
)
ilp
)
These are the commandline arguments of xdkconv
:
--help
or --nohelp
(short version: -h
): Display an
overview of the commandline arguments. Default: --nohelp
.
--grammar
(-g
): Select the source grammar file.
Default: "".
--output
(-o
): Select the destination grammar file.
Default: "".
--debug
or --nodebug
(-d
): Switch on the debug mode.
Default: nodebug
.
Here is an example. Assume you would like to convert the source grammar
file Grammars/Diplom.ul
, which is written in the User
Language (UL)
into the destination grammar file Grammars/Diplom.xml
in the
XML language. Here is how you do this with xdkconv
:
xdkconv.exe -g Grammars/Diplom.ul -o Grammars/Diplom.xml
xdkconv
reads the UL grammar Grammars/Diplom.ul
, and saves
the corresponding XML language grammar Grammars/Diplom.xml
.