Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed May 5, 2024
1 parent 33d56dd commit ef30ecf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion takolib/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::ast::string_interner::Identifier;
use crate::ast::{Ast, Atom, Call, Contains, Definition, NodeData, NodeId, Op};
use crate::error::TError;
use better_std::include_strs;
use log::trace;
use log::{debug, trace};
use semantics::BindingMode;
use semantics::Literal;
use smallvec::smallvec;
Expand Down Expand Up @@ -531,6 +531,9 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
)
}
_ => {
let st = location.start.into();
let end = std::cmp::min(st+50, self.contents.len());
debug!("ERROR AT:\n{}", &self.contents[st..end]);
return Err(ParseError::MissingLeftHandSideOfOperator {
op: symbol,
location,
Expand Down

0 comments on commit ef30ecf

Please sign in to comment.