Next: Lexicon, Previous: Principles, Up: Compiler
In a dimension definition, you can specify a set of outputs to visualize the solutions on that dimension. The outputs must be taken from the predefined output library, of the XDK. Using outputs proceeds in two steps:
First, you choose the subset of chosen outputs from the outputs available in the output library. All of these outputs must be able to visualize the solution on the currently defined dimension.
In the UL, you choose an output as follows:
output <constant>
where the <constant>
is an output identifier.
Then, you use a subset of the chosen outputs (the used outputs) which are actually utilized by the XDK to visualize the individual solutions of a solution for that dimension.
In the UL, you use an output as follows:
useoutput <constant>
where the <constant>
is an output identifier.
This rather artificial difference between choosing and using outputs
has its roots in the GUI of the XDK. Here, all the chosen outputs are
available in the Outputs
menu (so that you can still use them
on demand), but only the used outputs are actually used for
visualizing solutions.
In our example grammar file, only the output output.pretty
is
chosen on both the id and the lp dimension (but not used):
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%% %% use and choose outputs output "output.pretty"
The multi-dimensional outputs output.dags1
and
output.latexs1
are used on the lex dimension, but only the
former is chosen:
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%% %% use and choose outputs output "output.dags1" output "output.latexs1" useoutput "output.dags1"