summaryrefslogtreecommitdiff
path: root/src/parsers/semantic.rs
diff options
context:
space:
mode:
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!()
+ }
+}