diff --git a/schala-lang/language/src/lib.rs b/schala-lang/language/src/lib.rs index 93a10b8..5258dc2 100644 --- a/schala-lang/language/src/lib.rs +++ b/schala-lang/language/src/lib.rs @@ -29,6 +29,7 @@ macro_rules! bx { } mod util; +mod source_map; mod builtin; mod tokenizing; mod ast; diff --git a/schala-lang/language/src/source_map.rs b/schala-lang/language/src/source_map.rs new file mode 100644 index 0000000..211673f --- /dev/null +++ b/schala-lang/language/src/source_map.rs @@ -0,0 +1,13 @@ + +pub struct SourceMap { + node: T, + data: SourceData +} + +struct SourceData { + line_number: usize, + char_idx: usize +} + + +