Module: Loxxy

Defined in:
lib/loxxy.rb,
lib/loxxy/error.rb,
lib/loxxy/version.rb,
lib/loxxy/cli_parser.rb,
lib/loxxy/interpreter.rb,
lib/loxxy/ast/lox_node.rb,
lib/loxxy/datatype/nil.rb,
lib/loxxy/datatype/true.rb,
lib/loxxy/back_end/entry.rb,
lib/loxxy/datatype/false.rb,
lib/loxxy/ast/ast_builder.rb,
lib/loxxy/ast/ast_visitee.rb,
lib/loxxy/ast/ast_visitor.rb,
lib/loxxy/ast/lox_if_stmt.rb,
lib/loxxy/back_end/engine.rb,
lib/loxxy/datatype/number.rb,
lib/loxxy/ast/lox_fun_stmt.rb,
lib/loxxy/ast/lox_get_expr.rb,
lib/loxxy/ast/lox_seq_decl.rb,
lib/loxxy/ast/lox_set_expr.rb,
lib/loxxy/ast/lox_var_stmt.rb,
lib/loxxy/datatype/boolean.rb,
lib/loxxy/front_end/parser.rb,
lib/loxxy/ast/lox_call_expr.rb,
lib/loxxy/ast/lox_noop_expr.rb,
lib/loxxy/ast/lox_this_expr.rb,
lib/loxxy/back_end/resolver.rb,
lib/loxxy/back_end/variable.rb,
lib/loxxy/front_end/grammar.rb,
lib/loxxy/front_end/scanner.rb,
lib/loxxy/ast/lox_block_stmt.rb,
lib/loxxy/ast/lox_class_stmt.rb,
lib/loxxy/ast/lox_print_stmt.rb,
lib/loxxy/ast/lox_super_expr.rb,
lib/loxxy/ast/lox_unary_expr.rb,
lib/loxxy/ast/lox_while_stmt.rb,
lib/loxxy/back_end/lox_class.rb,
lib/loxxy/datatype/lx_string.rb,
lib/loxxy/ast/lox_assign_expr.rb,
lib/loxxy/ast/lox_binary_expr.rb,
lib/loxxy/ast/lox_return_stmt.rb,
lib/loxxy/ast/lox_literal_expr.rb,
lib/loxxy/ast/lox_logical_expr.rb,
lib/loxxy/back_end/environment.rb,
lib/loxxy/front_end/raw_parser.rb,
lib/loxxy/ast/lox_compound_expr.rb,
lib/loxxy/ast/lox_grouping_expr.rb,
lib/loxxy/ast/lox_variable_expr.rb,
lib/loxxy/back_end/lox_function.rb,
lib/loxxy/back_end/lox_instance.rb,
lib/loxxy/back_end/symbol_table.rb,
lib/loxxy/back_end/unary_operator.rb,
lib/loxxy/back_end/binary_operator.rb,
lib/loxxy/datatype/builtin_datatype.rb

Overview

Namespace for all classes and constants of loxxy gem.

Defined Under Namespace

Modules: Ast, BackEnd, Datatype, FrontEnd Classes: CLIParser, Error, Interpreter, RuntimeError, ScanError, SyntaxError

Constant Summary collapse

VERSION =
'0.4.08'

Class Method Summary collapse

Class Method Details

.lox_falseLoxxy::Datatype::False

Shorthand method. Returns the sole object that represents a Lox false literal.



13
14
15
# File 'lib/loxxy.rb', line 13

def self.lox_false
  Datatype::False.instance
end

.lox_nilLoxxy::Datatype::Nil

Shorthand method. Returns the sole object that represents a Lox nil literal.



20
21
22
# File 'lib/loxxy.rb', line 20

def self.lox_nil
  Datatype::Nil.instance
end

.lox_trueLoxxy::Datatype::True

Shorthand method. Returns the sole object that represents a Lox true literal.



27
28
29
# File 'lib/loxxy.rb', line 27

def self.lox_true
  Datatype::True.instance
end