You are browsing as a guest. Sign up (or log in) to start making projects!

2h 13m 33s logged

Fixed my parser!

Today’s update: I fixed my parser. The main issue was that it didn’t parse in order; it would do it like this:

Text that should be in 
<a></a>

The problem was that I couldn’t use this for my DOM tree, and getting my DOM program to do this would be slow and inefficient.

Also, the cause of this was because I didn’t check for conditions that it was a start, middle, or end tag. I did it so I bunched the start and end together, and this was a huge problem because it ended up being put at the bottom, which wouldn’t work at all!


Fixing it took a hot minute, but tomorrow I should have DOM’s working. Ok, thanks for reading that! The before and after are in the images below.


Code / Project


You can check out the code here:
https://github.com/k754a/C-Plus-Plus-Web-Engine

And try a older version of it:
https://k754a.hackclub.app/

2
163

Comments 0

No comments yet. Be the first!