home readme diff tree note docs

0commit 9e7fd2980d723437ea621b78d395fa72ca3f4922
1Author: Mason Wright <mason@lakefox.net>
2Date:   Sat Jun 14 13:40:40 2025 -0600
3
4    Init
5
6diff --git a/adapter.cc b/adapter.cc
7new file mode 100644
8index 0000000..e69de29
9diff --git a/build.sh b/build.sh
10new file mode 100755
11index 0000000..4439e39
12--- /dev/null
13+++ b/build.sh
14@@ -0,0 +1 @@
15+clang++ element.cc -std=c++23 -o main
16diff --git a/element.cc b/element.cc
17new file mode 100755
18index 0000000..e987f50
19--- /dev/null
20+++ b/element.cc
21@@ -0,0 +1,66 @@
22+#include <string>
23+#include <print>
24+#include <vector>
25+#include <iostream>
26+
27+#define GETTER_SETTER(type, name) \
28+    type get##name() const { return name; } \
29+    void set##name(type value) { name = value; }
30+
31+struct Styles {
32+	stylesheets std::vector<std::unordered_map<std::string, std::string>>;
33+	inline std::unordered_map<std::string, std::string>;
34+	psuedo std::unordered_map<std::string, std::unordered_map<std::string, std::string>>;
35+}
36+
37+struct Bounds {
38+	int Top;
39+	int Right;
40+	int Bottom;
41+	int Left;
42+}
43+
44+struct State {
45+	Bounds offset;
46+	Border border;
47+	std:vector<Background> background;
48+	int width;
49+	int height;
50+	int z;
51+	bool hidden;
52+	int tabIndex;
53+}
54+
55+class Node {
56+	private:
57+		std::string tagName;
58+		std::string id;
59+		std::string innerText;
60+
61+
62+
63+	public:
64+		Node* parent;
65+		std::vector<Node*> children;
66+
67+		// Define the getters and setters for each private property
68+		GETTER_SETTER(std::string, tagname)
69+		GETTER_SETTER(std::string, id)
70+		GETTER_SETTER(std::string, innerText)
71+};
72+
73+
74+Node* parser(std::string file) {
75+	
76+}
77+
78+int main() {
79+
80+	Node document;
81+
82+	document.setTagName("html");
83+	std::string tn = document.getTagName();
84+
85+	std::println("{}", tn);
86+	return 0;
87+}
88diff --git a/events.cc b/events.cc
89new file mode 100644
90index 0000000..e70b57e
91--- /dev/null
92+++ b/events.cc
93@@ -0,0 +1 @@
94+#include <print>
95diff --git a/main b/main
96new file mode 100755
97index 0000000..52bf11c
98Binary files /dev/null and b/main differ
99diff --git a/main.cc b/main.cc
100new file mode 100755
101index 0000000..4a6554a
102--- /dev/null
103+++ b/main.cc
104@@ -0,0 +1,35 @@
105+#include <print>   // For print and std::println
106+#include <string>
107+using namespace std;
108+
109+int main() {
110+    int age = 30;
111+    string name = "Alice";
112+    double pi = 3.1415926535;
113+    bool is_cpp_fun = true;
114+
115+    // 1. Basic usage - similar to cout without endl
116+    print("Hello, world!");
117+    print("This is awesome.\n"); // Manually add newline for print
118+
119+    // 2. Basic usage with arguments - placeholder {}
120+    println("Name: {}, Age: {}", name, age);
121+
122+    // 3. Positional arguments (optional, but useful for reordering)
123+    println("Age: {1}, Name: {0}", name, age);
124+
125+    // 4. Formatting numbers (precision, width, scientific notation)
126+    println("Pi (default): {}", pi);
127+    println("Pi (2 decimal places): {:.2f}", pi);
128+    println("Pi (scientific): {:e}", pi);
129+    println("Number with width and fill: {:*^10}", 42); // Center 42 in 10 chars, fill with *
130+
131+    // 5. Formatting boolean values
132+    println("Is C++ fun? {}", is_cpp_fun); // Prints 1 or 0 by default
133+    println("Is C++ fun? {:L}", is_cpp_fun); // Prints true or false (locale-dependent)
134+
135+    // 6. Printing multiple values with spaces in between
136+    println("{} {} {} {}", "One", 2, 3.0, true);
137+
138+    return 0;
139+}