Sha256: a479aa1f3bf98fff85df01ad3c0a5c48d29cc40bc3538bd46526d1ce78718ae8
Contents?: true
Size: 510 Bytes
Versions: 24
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true # :markup: markdown module ActionDispatch module Journey # :nodoc: module NFA # :nodoc: module Dot # :nodoc: def to_dot edges = transitions.map { |from, sym, to| " #{from} -> #{to} [label=\"#{sym || 'ε'}\"];" } <<-eodot digraph nfa { rankdir=LR; node [shape = doublecircle]; #{accepting_states.join ' '}; node [shape = circle]; #{edges.join "\n"} } eodot end end end end end
Version data entries
24 entries across 24 versions & 2 rubygems