Sha256: 0c222575f0bc8cfb6cf5c76180791d03f22705ea6a7749459239abfe6a107f91

Contents?: true

Size: 282 Bytes

Versions: 6

Compression:

Stored size: 282 Bytes

Contents

module Lrama
  class Grammar
    class Destructor < Struct.new(:ident_or_tags, :token_code, :lineno, keyword_init: true)
      def translated_code(tag)
        Code::DestructorCode.new(type: :destructor, token_code: token_code, tag: tag).translated_code
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lrama-0.6.9 lib/lrama/grammar/destructor.rb
lrama-0.6.8 lib/lrama/grammar/destructor.rb
lrama-0.6.7 lib/lrama/grammar/destructor.rb
lrama-0.6.6 lib/lrama/grammar/destructor.rb
lrama-0.6.5 lib/lrama/grammar/destructor.rb
lrama-0.6.4 lib/lrama/grammar/destructor.rb