summaryrefslogtreecommitdiff
path: root/src/parsers/semantic.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2025-02-11 14:00:20 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2025-02-11 14:00:20 +1300
commit2b4e522b12a7eb87e91cd1cdc56064ee429a5212 (patch)
tree9f302e18b7e664502dad32d8d33d44e24a01c677 /src/parsers/semantic.rs
downloadtorque-asm-2b4e522b12a7eb87e91cd1cdc56064ee429a5212.zip
Initial commit
Diffstat (limited to 'src/parsers/semantic.rs')
-rw-r--r--src/parsers/semantic.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/parsers/semantic.rs b/src/parsers/semantic.rs
new file mode 100644
index 0000000..94ed70c
--- /dev/null
+++ b/src/parsers/semantic.rs
@@ -0,0 +1,21 @@
+use crate::*;
+
+
+pub struct SemanticParser {
+ pub syntactic_tokens: Vec<SyntacticToken>,
+ pub semantic_tokens: Vec<SemanticToken>,
+}
+
+
+impl SemanticParser {
+ pub fn new(syntactic_tokens: Vec<SyntacticToken>) -> Self {
+ Self {
+ syntactic_tokens,
+ semantic_tokens: Vec::new(),
+ }
+ }
+
+ pub fn parse(&mut self) {
+ todo!()
+ }
+}