(FEAT) Abstracted file system into its own class. #20
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
/build/*
|
||||
parser
|
||||
/.vscode
|
||||
/*.html
|
||||
|
||||
6
input.md
6
input.md
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user