Sha256: f0fb60e96c3c1cb80b08f331a05ace63da8e09eae35062556a5489740e82ebdd

Contents?: true

Size: 755 Bytes

Versions: 16

Compression:

Stored size: 755 Bytes

Contents

# frozen_string_literal: true

require_relative 'loxxy/version'
require_relative 'loxxy/interpreter'
require_relative 'loxxy/front_end/raw_parser'

# Namespace for all classes and constants of __loxxy__ gem.
module Loxxy
  # Shorthand method. Returns the sole object that represents
  # a Lox false literal.
  # @return [Loxxy::Datatype::False]
  def self.lox_false
    Datatype::False.instance
  end

  # Shorthand method. Returns the sole object that represents
  # a Lox nil literal.
  # @return [Loxxy::Datatype::Nil]
  def self.lox_nil
    Datatype::Nil.instance
  end

  # Shorthand method. Returns the sole object that represents
  # a Lox true literal.
  # @return [Loxxy::Datatype::True]
  def self.lox_true
    Datatype::True.instance
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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