Sha256: 5b257d75f3d1b88e3393246ab3f106e492a562b3c3fec0ccabeb9757903807e4
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
# finished module Antlr4ruby # @final class AtomTransition < Transition attr_reader :atom_label def initialize(target, label) super(target) @atom_label = label end def get_serialization_type ATOM end def label RangeSet.new([atom_label..atom_label]) end def matches?(symbol, min_vocab_symbol, max_vocab_symbol) @atom_label == symbol end def to_s "#{atom_label}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
antlr4ruby-0.1.0 | lib/antlr4ruby/atn/transition/atom_transition.rb |