From bd74b4525b1cf038331fc77e49e892bcae73c15e Mon Sep 17 00:00:00 2001 From: Daniel Thayer Date: Wed, 27 Jun 2018 14:00:32 -0500 Subject: [PATCH] Add pattern operators to the documentation of operators --- doc/script-reference/operators.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/script-reference/operators.rst b/doc/script-reference/operators.rst index e9683f3e97..b7d6e71b73 100644 --- a/doc/script-reference/operators.rst +++ b/doc/script-reference/operators.rst @@ -141,6 +141,32 @@ field name must be in the declaration of the record type. +------------------------------+-------------+-------------------------------+ +Pattern operators +----------------- + +In the table below, *p* is a pattern, and *s* is a string. + ++------------------------------+-------------+-------------------------------+ +| Name | Syntax | Notes | ++==============================+=============+===============================+ +| Exact matching | *p* == *s* | Evaluates to a boolean, | +| | | indicating if the entire | +| | | string exactly matches the | +| | | pattern. | ++------------------------------+-------------+-------------------------------+ +| Embedded matching | *p* in *s* | Evaluates to a boolean, | +| | | indicating if pattern is | +| | | found somewhere in the string.| ++------------------------------+-------------+-------------------------------+ +| Conjunction | *p1* & *p2* | Evaluates to a pattern that | +| | | represents matching p1 | +| | | followed by p2. | ++------------------------------+-------------+-------------------------------+ +| Disjunction | *p1* | *p2* | Evaluates to a pattern that | +| | | represents matching p1 or p2. | ++------------------------------+-------------+-------------------------------+ + + Type casting ------------