Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrinmoyHaloi committed Jan 14, 2024
1 parent c6dc6bc commit 21abc18
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions Swirl/src/swirl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,38 +41,10 @@ std::unordered_map<std::string, const char*> type_registry = {
{"function","global"}
};


std::optional<std::unordered_map<std::string, std::string>> compile(
std::string& _source,
const std::string& _cacheDir,
bool symt = false) {

InputStream chrinp_stream(_source);
TokenStream tk(chrinp_stream);
preProcess(_source, tk, _cacheDir);
Parser parser(tk);
return Transpile(
parser.m_AST->chl,
_cacheDir,
compiled_source,
true,
symt
);
}

int main(int argc, const char** const argv) {

cli app(argc, argv, application_flags);

// For Debugging purpose
// const char *args[] = {
// "swirl",
// "main.sw",
// "-r",
// "-d"
// };
//
// cli app(4, args, application_flags);

if (app.contains_flag("-h")) {
std::cout << USAGE << app.generate_help() << '\n';
return 0;
Expand Down

0 comments on commit 21abc18

Please sign in to comment.