Class: Rley::RGN::RawRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/rley/rgn/grammar_builder.rb

Overview

Structure used by Rley to generate implicdit production rules.

Instance Attribute Summary collapse

Instance Attribute Details

#constraintsObject

Returns the value of attribute constraints

Returns:

  • (Object)

    the current value of constraints



13
14
15
# File 'lib/rley/rgn/grammar_builder.rb', line 13

def constraints
  @constraints
end

#lhsObject

Returns the value of attribute lhs

Returns:

  • (Object)

    the current value of lhs



13
14
15
# File 'lib/rley/rgn/grammar_builder.rb', line 13

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs

Returns:

  • (Object)

    the current value of rhs



13
14
15
# File 'lib/rley/rgn/grammar_builder.rb', line 13

def rhs
  @rhs
end

#simpleObject

Returns the value of attribute simple

Returns:

  • (Object)

    the current value of simple



13
14
15
# File 'lib/rley/rgn/grammar_builder.rb', line 13

def simple
  @simple
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



13
14
15
# File 'lib/rley/rgn/grammar_builder.rb', line 13

def tag
  @tag
end