Skip to content

Commit

Permalink
Parser
Browse files Browse the repository at this point in the history
- Read in the module's source
  • Loading branch information
deavmi committed Oct 29, 2023
1 parent 8790474 commit fc8ba65
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/tlang/compiler/parsing/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -2268,10 +2268,18 @@ public final class Parser
}
gprintln("<<<< End discovered >>>>>");

// TODO: Add parsing here


// TODO: Testing (Search for a module)
ModuleEntry foundEnt = modMan.searchFrom_throwable(moduleName, currentModulePath);
gprintln("Module wanting to be imported: "~moduleName);
gprintln("Found module entry: "~to!(string)(foundEnt));

// Read in the module's contents
string moduleSource = modMan.readModuleData_throwable(foundEnt);
gprintln("Module has "~to!(string)(moduleSource.length)~" many bytes");

// TODO: Add parsing here


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

0 comments on commit fc8ba65

Please sign in to comment.