(Non-delimiter characters) Verifying that `{@QuoteChar}` does not match characters that are not defined as string delimiters in the engine.
(Real World: Currency Formatter) Finding raw numbers in a text stream and converting them to a formatted currency string.
(Real World: Escaping Helper) Finding double quotes to manually insert an escape backslash before them.
(Real World: Quote Normalizer) Converting all string literals to use double quotes, regardless of whether they were originally single or double quoted.
(Real World: Sensitive Data Redaction) Masking the content of all string literals in a log or script, while preserving the non-string code structure.
(Real World: Structure Identification) Labeling the start of complex data structures in a mixed text stream.
A 'Hello, World!' example demonstrating the creation and evaluation of an expression using the modern, simplified syntax.
A basic example demonstrating how to ignore a block of text in parentheses, preventing other rules from matching inside it.
A complete data sanitization pipeline that processes multiple key-value pairs, using a native callback to perform custom email validation.
A complete game turn script demonstrating multiple DSL commands for moving, gaining resources, and drawing cards.
A complete log processing pipeline that parses multiple lines and calculates aggregate metrics like total requests, error count, and average response time.
A complete syntax highlighter that finds keywords, strings, and comments, and wraps them in pseudo-HTML tags for styling.
A complete, single-pass transformer that converts common BBCode tags (bold, italic, underline, URL, and quote) to their Markdown equivalents.
A complete, single-pass transformer that converts headers, list items, bold, and italic Markdown syntax to HTML.
A complete, working command-line REPL that reads user input, evaluates it with uCalc, and prints the result or any error messages.
A complete, working natural language date parser that handles keywords, relative days, and future durations.
A generic conversion system that uses a single transformer rule and a callback to dynamically look up conversion factors stored in variables.
A practical example demonstrating how to extract an error message from a log entry and then chain another operation on the result.
A practical example of `ByHandle` to create a `TypeOf` function that introspects an argument and returns its data type name as a string.
A practical example of `ByRef` to create a classic `Swap` function that modifies its arguments in the caller's scope.
A practical example of a proactive error handler that automatically defines undeclared variables on the fly, allowing the expression to successfully resume execution.
A practical example of a router with multiple rules, demonstrating LIFO precedence and handling of a '404 Not Found' case.
A practical example of iterating through all token definitions in a collection using Count as the loop boundary.
A practical example of parsing a specific HTML section and applying transformations only to the elements within it.