In this video, we'll be covering how to convert older grammars to use the current standard.
The most important change is that a lot of the variable names that are used to denote rule variables were changed.
Previous
$
$$
$$$
$rulename
Updated
out
rules.latest()
meta.latest()
rules.rulename
You'll see that the new version looks a lot cleaner without all the dollar signs.
You should also know that this will only affect SI Script grammars. It will not affect string literal grammars, because you don't reference other rule variables besides the current rule variable.
LumenVox used to support the shortcut method you see here:
$one = one:"1"
This is no longer allowed. Instead, use the following:
String literals: $one = one {1}
SI Script: $one = one{out="1"};
We previously supported two formats:
Now:
(Please see video at 7:10 for an example of converting an old grammar)
If you still have questions, please check out our Resources section: www.LumenVox.com/resources, or Contact Us.