![]() |
Spicy
|
Public Member Functions | |
void | parseOptions (const std::string &prog, int argc, char **argv) |
void | usage (const std::string &prog) |
void | parseOptions (int argc, char **argv) |
void | usage () |
![]() | |
Driver (std::string name) | |
Driver (std::string name, const hilti::rt::filesystem::path &argv0) | |
Driver (const Driver &)=delete | |
Driver (Driver &&) noexcept=delete | |
Driver & | operator= (const Driver &)=delete |
Driver & | operator= (Driver &&) noexcept=delete |
spicy::Options | spicyCompilerOptions () const |
void | setSpicyCompilerOptions (const spicy::Options &options) |
![]() | |
Driver (std::string name) | |
Driver (std::string name, const hilti::rt::filesystem::path &argv0) | |
Driver (const Driver &)=delete | |
Driver (Driver &&) noexcept=delete | |
Driver & | operator= (const Driver &)=delete |
Driver & | operator= (Driver &&) noexcept=delete |
Result< Nothing > | parseOptions (int argc, char **argv) |
Result< Nothing > | addInput (std::shared_ptr< Unit > u) |
Result< Nothing > | addInput (const hilti::rt::filesystem::path &path) |
bool | hasInputs () const |
const auto & | driverOptions () const |
const auto & | hiltiOptions () const |
void | setDriverOptions (driver::Options options) |
void | setCompilerOptions (hilti::Options options) |
Result< Nothing > | initialize () |
Result< Nothing > | compile () |
const auto & | context () const |
const auto & | options () const |
Result< Nothing > | initRuntime () |
Result< Nothing > | executeMain () |
Result< Nothing > | finishRuntime () |
Result< Nothing > | run () |
![]() | |
hilti::rt::Result< hilti::rt::Nothing > | listParsers (std::ostream &out) |
hilti::rt::Result< const spicy::rt::Parser * > | lookupParser (const std::string &name="") |
hilti::rt::Result< spicy::rt::ParsedUnit > | processInput (const spicy::rt::Parser &parser, std::istream &in, int increment=0) |
hilti::rt::Result< hilti::rt::Nothing > | processPreBatchedInput (std::istream &in) |
void | debug (const std::string &msg) |
Additional Inherited Members | |
![]() | |
std::string | hookAddCommandLineOptions () override |
bool | hookProcessCommandLineOption (char opt, const char *optarg) override |
std::string | hookAugmentUsage () override |
![]() | |
void | usage () |
Result< Nothing > | compileUnits () |
Result< Nothing > | codegenUnits () |
Result< Nothing > | linkUnits () |
Result< Nothing > | outputUnits () |
Result< Nothing > | jitUnits () |
result::Error | error (std::string_view msg, const hilti::rt::filesystem::path &p="") |
result::Error | augmentError (const result::Error &err, const hilti::rt::filesystem::path &p="") |
Result< std::ofstream > | openOutput (const hilti::rt::filesystem::path &p, bool binary=false, bool append=false) |
Result< Nothing > | openInput (std::ifstream &in, const hilti::rt::filesystem::path &p) |
Result< Nothing > | writeOutput (std::ifstream &in, const hilti::rt::filesystem::path &p) |
Result< std::stringstream > | readInput (const hilti::rt::filesystem::path &p) |
Result< hilti::rt::filesystem::path > | writeToTemp (std::ifstream &in, const std::string &name_hint, const std::string &extension="tmp") |
void | dumpUnit (const Unit &unit) |
void | printHiltiException (const hilti::rt::Exception &e) |
virtual void | hookAddInput (std::shared_ptr< Unit > unit) |
virtual void | hookAddInput (const hilti::rt::filesystem::path &path) |
virtual void | hookNewASTPreCompilation (std::shared_ptr< Unit > unit) |
virtual void | hookNewASTPostCompilation (std::shared_ptr< Unit > unit) |
virtual Result< Nothing > | hookCompilationFinished (const Plugin &plugin) |