class Crystal::Compiler
- Crystal::Compiler
- Reference
- Object
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:2crystalline/ext/compiler.cr:88
crystalline/ext/compiler.cr:216
Instance Method Summary
-
#crystal_path : Crystal::CrystalPath
Make it possible to use a custom library path with the Program.
-
#crystal_path=(crystal_path : Crystal::CrystalPath)
Make it possible to use a custom library path with the Program.
-
#fail_slow_compile(source : Source | Array(Source), output_filename : String) : Result
Will not raise if the semantic analysis fails.
-
#file_overrides : Hash(String, String) | Nil
Make it possible to compile in-memory.
-
#file_overrides=(file_overrides : Hash(String, String) | Nil)
Make it possible to compile in-memory.
Instance Method Detail
def crystal_path : Crystal::CrystalPath
#
Make it possible to use a custom library path with the Program.
def crystal_path=(crystal_path : Crystal::CrystalPath)
#
Make it possible to use a custom library path with the Program.
def fail_slow_compile(source : Source | Array(Source), output_filename : String) : Result
#
Will not raise if the semantic analysis fails.
def file_overrides=(file_overrides : Hash(String, String) | Nil)
#
Make it possible to compile in-memory.