class Crystal::Compiler

Overview

Main interface to the compiler.

A Compiler parses source code, type checks it and optionally generates an executable.

Defined in:

crystalline/ext/compiler.cr:2
crystalline/ext/compiler.cr:88
crystalline/ext/compiler.cr:216

Instance Method Summary

Instance Method Detail

def crystal_path : Crystal::CrystalPath #

Make it possible to use a custom library path with the Program.


[View source]
def crystal_path=(crystal_path : Crystal::CrystalPath) #

Make it possible to use a custom library path with the Program.


[View source]
def fail_slow_compile(source : Source | Array(Source), output_filename : String) : Result #

Will not raise if the semantic analysis fails.


[View source]
def file_overrides : Hash(String, String) | Nil #

Make it possible to compile in-memory.


[View source]
def file_overrides=(file_overrides : Hash(String, String) | Nil) #

Make it possible to compile in-memory.


[View source]