Sha256: 949138a3b76ae79c96ca52d6a4a45cf099a3b0defb117598f05c448e41454ec9

Contents?: true

Size: 280 Bytes

Versions: 13

Compression:

Stored size: 280 Bytes

Contents

module Lrama
  class Grammar
    class ErrorToken < Struct.new(:ident_or_tags, :token_code, :lineno, keyword_init: true)
      def translated_code(tag)
        Code::PrinterCode.new(type: :error_token, token_code: token_code, tag: tag).translated_code
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lrama-0.6.9 lib/lrama/grammar/error_token.rb
lrama-0.6.8 lib/lrama/grammar/error_token.rb
lrama-0.6.7 lib/lrama/grammar/error_token.rb
lrama-0.6.6 lib/lrama/grammar/error_token.rb
lrama-0.6.5 lib/lrama/grammar/error_token.rb
lrama-0.6.4 lib/lrama/grammar/error_token.rb
lrama-0.6.3 lib/lrama/grammar/error_token.rb
lrama-0.6.2 lib/lrama/grammar/error_token.rb
lrama-0.6.1 lib/lrama/grammar/error_token.rb
lrama-0.6.0 lib/lrama/grammar/error_token.rb
lrama-0.5.12 lib/lrama/grammar/error_token.rb
lrama-0.5.11 lib/lrama/grammar/error_token.rb
lrama-0.5.10 lib/lrama/grammar/error_token.rb