module Lit

Overview

Preferred system exit codes as defined by sysexits.h

Defined in:

lit.cr
lit/callable.cr
lit/environment.cr
lit/error_reporter.cr
lit/exit_code.cr
lit/expr.cr
lit/function.cr
lit/instance.cr
lit/interpreter.cr
lit/keywords.cr
lit/lit.cr
lit/parser.cr
lit/repl.cr
lit/resolver.cr
lit/runtime_error.cr
lit/scanner.cr
lit/stdlib/lit_array.cr
lit/stdlib/lit_float.cr
lit/stdlib/lit_integer.cr
lit/stdlib/lit_map.cr
lit/stdlib/lit_string.cr
lit/stdlib/native.cr
lit/stdlib/native_fn.cr
lit/stmt.cr
lit/text.cr
lit/token.cr
lit/token_type.cr
lit/type.cr
lit/value.cr

Constant Summary

KEYWORDS = {and: TokenType::AND, break: TokenType::BREAK, do: TokenType::DO, else: TokenType::ELSE, false: TokenType::FALSE, fn: TokenType::FN, if: TokenType::IF, import: TokenType::IMPORT, is: TokenType::EQUAL_EQUAL, var: TokenType::VAR, let: TokenType::LET, loop: TokenType::LOOP, match: TokenType::MATCH, next: TokenType::NEXT, nil: TokenType::NIL, or: TokenType::OR, return: TokenType::RETURN, self: TokenType::SELF, then: TokenType::THEN, true: TokenType::TRUE, type: TokenType::TYPE, until: TokenType::UNTIL, while: TokenType::WHILE}
UNINITIALIZED = Uninitialized.new
VERSION = "0.3.0"

Class Method Summary

Class Method Detail

def self.current_file_name : String #

[View source]
def self.expand_path(path : String) : String #

[View source]
def self.inspect_value(value : Value, interpreter, token) : String #

[View source]
def self.run(opts : Array(String) = ARGV) #

[View source]
def self.stringify_value(value : Value, interpreter : Interpreter, token : Token) : String #

[View source]
def self.with_current_file_path(file : String, &) #

[View source]