4 <refentrytitle>xexpr</refentrytitle>
5 <manvolnum>1</manvolnum>
6 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refname>xexpr</refname>
11 <refpurpose>XEXPR Interpreter</refpurpose>
16 <command>xexpr</command>
17 <arg choice="opt" rep="repeat">OPTION</arg>
22 <refsect1><title>Description</title>
23 <para><command>xexpr</command> is an XEXPR interpreter. It loads and executes
28 <refsect1><title>Options</title>
32 <term><option>-h</option>, <option>--help</option></term>
39 <term><option>-d</option>, <option>--dump-tree</option></term>
41 Instead of executing the XEXPR program, dump the parsed tree after loading
46 <term><option>-D</option>, <option>--dump-result</option></term>
48 After executing the XEXPR program, dump the result
53 <term><option>-t</option>, <option>--test-result</option></term>
55 After executing the XEXPR program, test the result and exit 0 if it evaluates
56 to <true/> and non-zero if it evaluates to <false/>
61 <term><option>-T=<replaceable>id</replaceable></option>, <option>--trace <replaceable>id</replaceable></option></term>
63 Adds <replaceable>id</replaceable> to the set of symbols to trace.
65 When variables with the name of a traced symbol are created or changed,
66 <command>xexpr</command> will output a suitable tracing message and a stack
72 <term><option>--xinclude</option></term>
74 Do XInclude processing
79 <term><option>--param <replaceable>name</replaceable>,<replaceable>number</replaceable></option></term>
81 Set a global XEXPR variable of the given <replaceable>name</replaceable> with a
82 numeric value of <replaceable>number</replaceable>. A float or integer type
83 will be selected automatically.
88 <term><option>--stringparam <replaceable>name</replaceable>,<replaceable>value</replaceable></option></term>
90 Set a global XEXPR variable of the given <replaceable>name</replaceable> with a
91 string value of <replaceable>value</replaceable>.