Parses a log file and uses the `FocusableOnly` option to quickly extract only the critical error entries.
Parses log entries to extract an optional error code, providing a default status when it's missing by using the `{!var:...}` fallback syntax.
Parsing a standard connection string. Note how the semicolon acts as both an anchor and a natural statement separator.
Practical: Builds a custom `Repeat` loop control structure that executes an action a specified number of times.
Practical: Creates a custom code block parser. `@QuoteSensitive(false)` is essential to allow the capture of content that contains its own quotes.
Practical: Creates a robust error handler that automatically defines variables on-the-fly when an 'Undefined Identifier' error occurs.
Practical: Demonstrates how removing the token for single-quoted strings causes the parser to treat the quote and its contents as individual generic tokens.
Practical: Inspects various properties of an item from within a callback, including its definition text.
Practical: Iterates through all matches and uses the `Match.Rule` property to identify which pattern generated each match, demonstrating a key introspection feature.
Practical: Iterates through all overloads of the '+' operator and displays their unique definition text.
Practical: Modifies the default alphanumeric token to include hyphens, allowing it to match hyphenated identifiers as single words.
Practical: Re-categorizes the newline token as whitespace to allow a pattern to match across multiple lines, a common requirement for parsing HTML or XML.
Practical: Shows how disabling statement sensitivity is essential for parsing multi-line HTML/XML blocks.
Practical: Traces the recursive expansion of a custom `MySum` function, showing how it is broken down into a standard arithmetic expression.
Practical: Validates a configuration file format by enforcing the number of times specific keys must appear.
Practical: Validating log file entries. If more than 2 'WARNING' entries exist, they are ignored, but 'ERROR' entries are still processed.
Processes a log file but stops after finding the first error message to focus on the initial problem.