so yeah that was a bunch of code

This commit is contained in:
nora 2023-05-27 22:30:09 +02:00
parent 3a282ffb89
commit ebe01c7521
17 changed files with 590 additions and 106 deletions

View file

@ -32,6 +32,10 @@ impl Span {
Self { start, end }
}
pub fn dummy() -> Self {
Self::start_end(0, 0)
}
pub fn extend(&self, rhs: Self) -> Self {
Self::start_end(self.start, rhs.end)
}

View file

@ -1,6 +1,6 @@
//! The expression parser is implemented as a pratt parser.
//!
//! For more information, see https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html
//! For more information, see <https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html>
use crate::{
ast::{