Hello,

I have some questions about BaseX interpreter.

1) Is there a way to send preprocessor instructions to BaseX interpreter ?

I am looking to a way to tell the interpreter to skip code based on external instructions, mainly to distinguish the behavior between debug / release modes.
This is achieved in C++ with the macro set of instructions #define, #if, #endif etc... I was wondering whether there exists such a mechanism in XQUERY.

Note : processor instructions might not be relevant for XQuery, since interpreters are heavily optimized.

2) Could you confirm that BaseX interpreter will not try to interpret "dead" code ?

To emulate processor instructions with XQUERY, I am presently using dynamic local variable declarations as (declare function debug(){true()/false()}), and encapsulating my code with a lot of "if (debug()) then (.1.) else (.2.)". Can you confirm that BaseX interpreter skip looking at (.1.) or (.2.) accordingly to the debug function return value ?

Cheers

Jean-Marc