Skip to content

Commit

Permalink
Parser
Browse files Browse the repository at this point in the history
- Added code to test the module searching method (in `parseImport(string)`)
  • Loading branch information
deavmi committed Oct 29, 2023
1 parent 6d38c05 commit ae60686
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/tlang/compiler/parsing/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,14 @@ public final class Parser

// TODO: Add parsing here

// TODO: Testing (Search for a module)
ModuleEntry foundEnt;
bool status = modMan.searchFrom(moduleName, currentModulePath, foundEnt);
if(status)
{
gprintln("Search for '"~moduleName~"' result: "~to!(string)(foundEnt));
}

gprintln("parseImport(): Leave", DebugType.WARNING);
}

Expand Down

0 comments on commit ae60686

Please sign in to comment.