lib/rley/gfg/item_vertex.rb in rley-0.6.00 vs lib/rley/gfg/item_vertex.rb in rley-0.6.01
- old
+ new
@@ -2,17 +2,17 @@
require_relative 'vertex'
module Rley # This module is used as a namespace
module GFG # This module is used as a namespace
- # Specialization of Vertex class. Represents a
+ # Specialization of Vertex class. Represents a
# vertex in a grammar flow graph associated to a given dotted item.
# Responsibilities (in addition to inherited ones):
# - Know its related non-terminal symbol
class ItemVertex < Vertex
# Link to the dotted item object
- # @return [DottedItem] The corresponding dotted item
+ # @return [DottedItem] The corresponding dotted item
attr_reader :dotted_item
# Optional link to a "shortcut" edge.
# Applicable only if the dotted expects a non-terminal symbol.
# @return [ShortcutEdge] Optional "shortcut" edge
@@ -63,19 +63,20 @@
def prev_symbol()
return dotted_item.prev_symbol
end
# Return the symbol after the dot.
- # @return [Syntax::GrmSymbol, NilClass] Next grammar symbol otherwise nil.
+ # @return [Syntax::GrmSymbol, NilClass] Next grammar symbol otherwise nil.
def next_symbol()
return dotted_item.next_symbol
end
# Return the non-terminal symbol at the left-hand side of the production
- # @return [Syntax::GrmSymbol] The non-terminal symbol at left side of production.
+ # @return [Syntax::GrmSymbol]
+ # The non-terminal symbol at left side of production.
def lhs()
return dotted_item.lhs
- end
+ end
end # class
end # module
end # module
# End of file