User Tools

Site Tools


visual3d:documentation:pipeline:expressions:reserved_characters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:expressions:reserved_characters [2024/06/26 20:05] – removed sgrangervisual3d:documentation:pipeline:expressions:reserved_characters [2025/06/20 19:00] (current) – Cleaned up page. wikisysop
Line 1: Line 1:
 +====== Reserved Characters ======
 +
 +Several characters are reserved in the syntax for [[visual3d:documentation:pipeline:expressions:expressions_overview|expressions]]. Because these reserved characters are interpreted by Visual3D's expression parser, a special notation is required to indicated that these characters should be used literally.
 +
 +===== Ampersand =====
 +
 +<code>AMP = &</code>
 +
 +For example, if the desired pipeline command were as follows:
 +
 +<code>
 +Select_Active_File
 +/FILE_NAME=ALL_FILES
 +/QUERY= TAG1 & TAG2
 +;
 +</code>
 +
 +If the tags TAG1 and TAG2 exist then all files that have been assigned both tags will be active. If, however, we want to use pipeline parameters in place of the text TAG1 and TAG2, we have a problem because there is no way to stop Visual3D from using the & character to concatenate the text. The solution was to introduce a reserved parameter ::AMP. The following pipeline would result:
 +
 +<code>
 +Set_Pipeline_Parameter
 +/PARAMETER_NAME=A
 +/PARAMETER_VALUE=TAG1
 +;
 +
 +Set_Pipeline_Parameter
 +/PARAMETER_NAME=B
 +/PARAMETER_VALUE=TAG2
 +;
 +
 +Select_Active_File
 +/FILE_NAME=ALL_FILES
 +/QUERY= ::A&::AMP&::B
 +;
 +</code>
 +
 +and this would result in Visual3D interpreting the query: /QUERY=TAG1 & TAG2. More examples of using the AMP operator can be found [[visual3d:documentation:pipeline:expressions:example_using_the_amp_operator|here]].
 +
 +===== Colon =====
 +
 +<code>COLON = :</code>
 +
 +The ":" character is used through the pipeline and expression syntax, notably when specify a [[visual3d:documentation:pipeline:expressions:expression_syntax#data_tree_syntax|signal in the data tree]].
 +
 +===== Semicolon =====
 +
 +<code>SEMICOLON = ;</code>
 +
 +The ";" character is parsed to indicate the end of a pipeline command.
 +
 +===== Plus Sign =====
 +
 +<code>PLUS = +</code>
 +
 +The "+" character is parsed to indicate concatenation of list items.
 +
 +===== Forward Slash =====
 +
 +<code>FSLASH = /</code>
 +
 +The "/" character is parsed to indicate the beginning of a pipeline command parameter.
 +
 +===== Space Character =====
 +
 +<code>SPACE=" "</code>
 +
 +The parser ignores space characters by default.
  
visual3d/documentation/pipeline/expressions/reserved_characters.1719432309.txt.gz · Last modified: 2024/06/26 20:05 by sgranger