Flags & Debug
alternativeParsing
$alternativeParsing
Enables an alternative parsing mode for the current command. Useful for resolving certain syntax conflicts or unexpected behaviors of the BDFD parser.
Syntax
$alternativeParsing
$alternativeParsing
The $alternativeParsing function enables an alternative parsing mode for the current command. This mode uses a different processing logic that can resolve compatibility issues.
Syntax
$alternativeParsing
Parameters
None.
Return value
None.
Behavior
- Changes how BDFD interprets and executes the command code.
- Can resolve bugs related to nested brackets
[]or special characters. - Effect is limited to the current command.
Examples
Resolving a bracket conflict
$alternativeParsing
$sendMessage[$replaceText[Hello [World];[ ];-]]
Command with complex syntax
$alternativeParsing
$if[$checkContains[$message;[;]==true]
$sendMessage[Content detected.]
$else
$sendMessage[No content.]
$endif
Notes
- Use when standard parsing causes unexplained errors.
- Can slightly slow down execution.
- To be placed at the beginning of the command, before any other code.
- Alternative to
$optOfffor purely syntax-related issues.