Sha256: fc1befc0c76edcc7ba2460405a4097d868b524d5432c6b0db87aec9361e72cd8

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

module Lrama
  class Grammar
    class Code
      extend Forwardable

      attr_accessor type: Symbol
      attr_accessor token_code: Lexer::Token::UserCode

      # delegated
      def s_value: -> String
      def line: -> Integer
      def column: -> Integer
      def references: -> Array[Lrama::Grammar::Reference]

      def initialize: (type: Symbol, token_code: Lexer::Token::UserCode) -> void

      def translated_code: () -> String

      private

      def reference_to_c: (untyped ref) -> untyped
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lrama-0.6.9 sig/lrama/grammar/code.rbs
lrama-0.6.8 sig/lrama/grammar/code.rbs
lrama-0.6.7 sig/lrama/grammar/code.rbs
lrama-0.6.6 sig/lrama/grammar/code.rbs
lrama-0.6.5 sig/lrama/grammar/code.rbs
lrama-0.6.4 sig/lrama/grammar/code.rbs
lrama-0.6.3 sig/lrama/grammar/code.rbs
lrama-0.6.2 sig/lrama/grammar/code.rbs
lrama-0.6.1 sig/lrama/grammar/code.rbs
lrama-0.6.0 sig/lrama/grammar/code.rbs