class RegularExpression::AST::Character
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/regular_expression/ast.rb, line 179 def initialize(value) @value = value end
Public Instance Methods
to_dot(parent)
click to toggle source
# File lib/regular_expression/ast.rb, line 183 def to_dot(parent) parent.add_node(object_id, label: value, shape: "box") end
to_nfa(start, finish)
click to toggle source
# File lib/regular_expression/ast.rb, line 191 def to_nfa(start, finish) start.add_transition(NFA::Transition::Value.new(finish, value)) end
to_nfa_values()
click to toggle source
# File lib/regular_expression/ast.rb, line 187 def to_nfa_values [value] end