c622b3f8d3959b7f3eb53f3f4aec9b9e61c76989 kent Thu Aug 15 12:03:17 2019 -0700 Added strexParseFile function, so can parse files as well as strings. Also added import operator, which is going to be so helpful for debugging and reusing complicated expressions. diff --git src/lib/strex.doc src/lib/strex.doc index e471d20..537b98e 100644 --- src/lib/strex.doc +++ src/lib/strex.doc @@ -115,15 +115,19 @@ (city or country or "somewhere in the universe") Note the parenthesis around the ors is good to have because of the very low precedence of the logical operators. and - logical and operation extended to strings and numbers for logic - if all and-separated-values are tru, return true, else false for numbers - if all numbers are non-zero return true else false for strings - if all and-separated strings are nonempty, return true, else "" In mixed operations result is converted to strings if strings are involved or the values "" and "true" if no strings are involved. now() - returns current time and date in ISO 1806 format using the variant that has the local time and timezone, for instance 2019-08-14T23:35:22-0700 for 11:35 pm in California during daylight savings time. +import("file.strex") - act as if the contents of file.strex, which should be a valid + strex expression but one that can span multiple lines, were here instead of this + import expression. This is useful for debugging and reusing complex expressions. + (You'll get line numbers from the file in the error message, which helps localize it.)