Create common FA/State/Transition classes across NFA/DFA

This commit is contained in:
josh committed 2021-06-06 09:41:23 -04:00
1 parent 1228a76c55
commit ed3f599e25
6 files changed
+144 -164

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
module Imbecile
class Regex
class FA
class State
class Transition
attr_reader :code_point_range
attr_reader :destination
def initialize(code_point_range, destination)
@code_point_range = code_point_range
@destination = destination
end
def nil?
@code_point_range.nil?
end
end
end
end
end
end