class Hollicode::Compiler

Defined in:

core/compiler.cr

Constant Summary

MULTILINE_TEXT_SEPARATOR = " "

Constructors

Instance Method Summary

Constructor Detail

def self.new(bytecode : Hollicode::BytecodeGenerator) #

[View source]
def self.new #

[View source]

Instance Method Detail

def compilation_path : String #

[View source]
def compilation_path=(compilation_path : String) #

[View source]
def compile(source_string : String) #

Returns true if compilation happened without errors or false otherwise.


[View source]
def get_json #

Returns generated bytecode in JSON format.


[View source]
def get_lua #

Returns generated bytecode in Lua format.


[View source]
def get_plain_text #

Returns generated bytecode in plain text format.

See BYTECODE.md for explanation of various export formats.


[View source]