(FEAT) Abstracted file system into its own class. #20

Merged
shultzp1 merged 2 commits from feature/file-handler into main 2025-10-18 14:17:02 -07:00
3 changed files with 4 additions and 6 deletions
Showing only changes of commit 2fdab0134a - Show all commits

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/build/*
parser
/.vscode
/*.html

View File

@ -4,7 +4,7 @@
The goal is to create a program that reads a file containing text formatted in a simple version of
Markdown and converts it into a valid HTML file. The program will need to identify and translate
specific syntax (e.g., `# Heading` to `<h1>Heading</h1>`, `*text*` to `<em>text</em>`).
specific syntax (e.g., ` Heading` to `\<h1\>Heading\</h1\>`, `*text*` to `\<em\>text\</em\>`).
### Implementation Requirements (Generated by Gemini)
@ -42,8 +42,8 @@ that all tags are correctly opened and closed. Your presentation can visually de
with a stack diagram.
Hash Map or Map: A hash map (std::unordered_map) or a map (std::map) can be used to efficiently store
and retrieve the HTML equivalent for each Markdown tag. For example, you could map `#` to `<h1>`or `*`
to `<em>`. This provides O(1) average-case lookup time.
and retrieve the HTML equivalent for each Markdown tag. For example, you could map `#` to `\<h1\>`or `*`
to `\<em\>`. This provides O(1) average-case lookup time.
### Contribution Policy

View File

@ -87,9 +87,6 @@ protected:
*/
std::unique_ptr<Node> DOM;
// NOTE: We need a stack, just not sure what goes in it yet
// std::stack<any> stack;
private:
/**
* @brief Normalize the input stream.