From 0caf1994dae8e88f7c219bedd87b65190b88aa89 Mon Sep 17 00:00:00 2001 From: j-james Date: Sun, 16 Oct 2022 23:58:44 -0700 Subject: Implement LL(1) parsers for HTML and CSS --- src/main/model/html/HtmlParser.java | 288 ++++++++++++++++++++++++++++++++++++ src/main/model/html/HtmlTree.java | 33 +++++ 2 files changed, 321 insertions(+) create mode 100644 src/main/model/html/HtmlParser.java create mode 100644 src/main/model/html/HtmlTree.java (limited to 'src/main/model/html') diff --git a/src/main/model/html/HtmlParser.java b/src/main/model/html/HtmlParser.java new file mode 100644 index 0000000..5109e62 --- /dev/null +++ b/src/main/model/html/HtmlParser.java @@ -0,0 +1,288 @@ +package model.html; + +import java.util.*; + +import model.html.HtmlTree; +import org.javatuples.*; + + +/* + + + + + j-james + + + + + + + +
+

+ j-james +

+ +
+
+
+ +
+

Hello, I'm JJ, and I go by j-james on the Internet.

+

I'm a second-year student at the University of British Columbia, flag hunter for Maple Bacon, embedded programmer on UBC Bionics, and occasional ultimate frisbee and roller/ice hockey player.

+

Outside of school, sports, and social life, I enjoy building and contributing to free-and-open-source projects. The majority of my work can either be found on GitHub or at SourceHut.

+
+
+ +
+ + + +