diff --git a/interpreter/src/ir/lower.rs b/interpreter/src/ir/lower.rs index b6c3be6..05cce42 100644 --- a/interpreter/src/ir/lower.rs +++ b/interpreter/src/ir/lower.rs @@ -7,17 +7,17 @@ mod utils; use std::{ fmt::{self, Display}, - mem::{DropGuard, replace}, + mem::{DropGuard, replace, take}, ops::{Deref, DerefMut}, vec::Vec as StdVec, }; use bumpalo::{Bump, collections::Vec}; use parser::{ - ArrayPlace, Ast, Atom, BinaryOperator, BinaryPlaceOperator, Body, Command, Expr, ExprNode, - Function as AstFunction, FunctionTable, Getline, Identifier, MetaId, Place, PlacingFunction, - Rule, RulePattern, SimpleStatement, Statement, StaticInterner, UnaryOperator, - UnaryPlaceOperator, Variable, + AriadneSpan, ArrayPlace, Ast, Atom, BinaryOperator, BinaryPlaceOperator, Body, Command, + Diagnostic, Expr, ExprNode, Function as AstFunction, FunctionTable, Getline, Identifier, + MetaId, ParsingError, Place, PlacingFunction, Rule, RulePattern, SimpleStatement, Statement, + StaticInterner, UnaryOperator, UnaryPlaceOperator, Variable, }; use smallvec::SmallVec; @@ -56,6 +56,10 @@ pub struct CodeGen<'a> { break_exits: Option>, continue_label: Option