class Citrus::Alias
An Alias is a Proxy for a rule in the same grammar. It is used in rule definitions when a rule calls some other rule by name. The Citrus notation is simply the name of another rule without any other punctuation, e.g.:
name
Private Instance Methods
resolve!()
click to toggle source
Searches this proxy's grammar and any included grammars for a rule with this proxy's rule_name. Raises an error if one cannot be found.
# File lib/citrus.rb, line 820 def resolve! rule = grammar.rule(rule_name) unless rule raise Error, "No rule named \"#{rule_name}\" in grammar #{grammar}" end rule end