Module Citrus::Nonterminal

  1. lib/citrus.rb

A Nonterminal is a Rule that augments the matching behavior of one or more other rules. Nonterminals may not match directly on the input, but instead invoke the rule(s) they contain to determine if a match can be made from the collective result.

Methods

public class

  1. new

Included modules

  1. Rule

Attributes

rules [R] An array of the actual Rule objects this rule uses to match.

Public class methods

new (rules=[])
[show source]
     # File lib/citrus.rb, line 979
979:     def initialize(rules=[])
980:       @rules = rules.map {|r| Rule.for(r) }
981:     end