Skip to content

Commit

Permalink
Compiler
Browse files Browse the repository at this point in the history
- Added TODO for `gibFileData(string)` and also made it `public`
  • Loading branch information
deavmi committed Aug 27, 2023
1 parent 0efa269 commit ee4c6f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/tlang/compiler/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ public class Compiler
}
}

// TODO: Move the below to utils
// TODO: Make it do error checking on the path provided and file-access rights
/**
* Opens the source file at the given path, reads the data
* and returns it
Expand All @@ -255,7 +257,7 @@ public class Compiler
* sourceFile = the path to the file to open
* Returns: the source data
*/
private string gibFileData(string sourceFile)
public string gibFileData(string sourceFile)
{
File sourceFileFile;
sourceFileFile.open(sourceFile); /* TODO: Error handling with ANY file I/O */
Expand Down

0 comments on commit ee4c6f0

Please sign in to comment.