Converting From Older SISR
If your grammars were written against an early draft of the SISR 1.0 specification, migrating them to the 2006 final Recommendation is straightforward — the syntax changed in a handful of predictable ways. Map each of the following and most grammars convert mechanically:
- The
$variable is nowout. $$is nowrules.latest().- To read a rule's variable, use
rules.rulenameinstead of$rulename. $$$is nowmeta.current().- Rule meta-information is now reached through
meta.rulename, specifying eithertextorscoreas the property.
The colon-and-quotes literal shortcut has also been removed, so this is no longer valid SISR:
| $one = one:"1"; |
To assign literals now, declare the appropriate Tag Format in the grammar header and set the value inside an SISR tag; see SISR Basics and Rule Variables for the details. You can no longer mix literal shortcuts and script tags within the same grammar.
Note: The Capacity Private Cloud implementation of SISR 1.0 supports tag formats beyond those defined in the official SISR 1.0 standard, to maintain backwards compatibility with older versions of SISR. See Tag Format for the complete list of supported formats, and SISR Basics for how they differ.
