Sha256: a6c7036611888e2969d4144e131689177051fe6dfaa376a7628272aef787f720

Contents?: true

Size: 690 Bytes

Versions: 43

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

require_relative 'lox_node'

module Loxxy
  module Ast
    class LoxLiteralExpr < LoxNode
      # @return [Loxxy::Datatype::BuiltinDatatype]
      attr_reader :literal

      # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream.
      # @param aLiteral [Loxxy::Datatype::BuiltinDatatype]
      def initialize(aPosition, aLiteral)
        super(aPosition)
        @literal = aLiteral
      end

      # Part of the 'visitee' role in Visitor design pattern.
      # @param visitor [ASTVisitor] the visitor
      def accept(visitor)
        visitor.visit_literal_expr(self)
      end
    end # class
  end # module
end # module

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
loxxy-0.2.02 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.2.01 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.2.00 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.17 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.16 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.15 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.14 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.13 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.12 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.11 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.10 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.09 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.08 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.07 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.06 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.05 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.04 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.03 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.02 lib/loxxy/ast/lox_literal_expr.rb
loxxy-0.1.01 lib/loxxy/ast/lox_literal_expr.rb