From 7825ef1eb93559f2b54560e33d31b86cb3f09323 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 22 Oct 2019 19:07:42 -0700 Subject: [PATCH] Partial module work --- schala-lang/language/src/parsing.rs | 7 +++++++ schala-lang/language/src/symbol_table/test.rs | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/schala-lang/language/src/parsing.rs b/schala-lang/language/src/parsing.rs index e7d1630..79ba2e4 100644 --- a/schala-lang/language/src/parsing.rs +++ b/schala-lang/language/src/parsing.rs @@ -162,6 +162,7 @@ mod test; use std::rc::Rc; use std::str::FromStr; +use std::collections::HashMap; use crate::tokenizing::*; use crate::tokenizing::Kw::*; @@ -200,6 +201,11 @@ pub struct Parser { parse_level: u32, restrictions: ParserRestrictions, id_store: ItemIdStore, + source_map: SourceMap, +} + +struct SourceMap { + map: HashMap