Class OOParser::Item::Subrule
In: lib/ooparser/items/subrule.rb  (CVS)
Parent: OOParser::Item

A subrule reference.

Methods

match   new  

Constants

SVNRev = %q$Rev: 4 $   SVN Revision
SVNId = %q$Id: subrule.rb 4 2005-09-08 07:36:41Z ged $   SVN Id

Attributes

rulename  [R]  The name of the subrule to match

Public Class methods

Create a new subrule item in an OOParser::Production that will match if the corresponding rule matches.

[Source]

# File lib/ooparser/items/subrule.rb, line 38
    def initialize( rulename )
        @rulename = rulename
    end

Public Instance methods

Match the target in the context of the current parseState.

[Source]

# File lib/ooparser/items/subrule.rb, line 51
    def match( parseState )
        parseState.subrule_match( @rulename )
    end

[Validate]