From fd08154a9fc803d45bc643a58a0574a067c77012 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Wed, 15 Oct 2025 13:21:46 -0700 Subject: [PATCH] (FEAT): Defined the structureNode classes for the node. --- lib/node.cpp | 2 +- lib/parser.cpp | 4 ++-- lib/structureNode.cpp | 1 + lib/structureNode.h | 13 +++++++++++++ lib/util.cpp | 2 +- 5 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 lib/structureNode.cpp create mode 100644 lib/structureNode.h diff --git a/lib/node.cpp b/lib/node.cpp index 0ed30f8..d1a373b 100644 --- a/lib/node.cpp +++ b/lib/node.cpp @@ -1,4 +1,4 @@ -#include "./node.h" +#include "node.h" #include #include diff --git a/lib/parser.cpp b/lib/parser.cpp index f2ac975..0f563e0 100644 --- a/lib/parser.cpp +++ b/lib/parser.cpp @@ -1,5 +1,5 @@ -#include "./parser.h" -#include "./util.h" +#include "parser.h" +#include "util.h" #include #include diff --git a/lib/structureNode.cpp b/lib/structureNode.cpp new file mode 100644 index 0000000..6d4d8f4 --- /dev/null +++ b/lib/structureNode.cpp @@ -0,0 +1 @@ +#include "structureNode.h" diff --git a/lib/structureNode.h b/lib/structureNode.h new file mode 100644 index 0000000..576de51 --- /dev/null +++ b/lib/structureNode.h @@ -0,0 +1,13 @@ +#ifndef STRUCTURENODE_H +#define STRUCTURENODE_H + +#include "node.h" + +class StructureNode : public Node {}; + +class ListNode : public StructureNode {}; +class HeadingNode : public StructureNode {}; +class DocumentNode : public StructureNode {}; +class ParagraphNode : public StructureNode {}; + +#endif diff --git a/lib/util.cpp b/lib/util.cpp index 0811048..a63a079 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -1,4 +1,4 @@ -#include "./util.h" +#include "util.h" void removeTrailingWhitespace(std::string &input) { size_t start = input.find_first_not_of(" \t\n\r\f\v");