Skip to content

Commit

Permalink
fixed error msgs for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiserthe13th committed Feb 5, 2022
1 parent 2f61748 commit e838715
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/runtime/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ impl Run {
"BilinmeyenTanımlayıcı",
&format!(
"bilinmeyen değişken: `{}`, bu değişken bulunamamıştır",
tokenc.repr()
tok.repr()
),
tokenc.line,
tokenc.col,
tokenc.file,
tok.line,
tok.col,
tok.file.clone(),
{
let mut hashk = hashs.clone().into_keys();
hashk.sort();
Expand All @@ -69,10 +69,10 @@ impl Run {
),
SupportedLanguage::English => ErrorGenerator::error(
"UnknownIdentifier",
&format!("unknown identifier: `{}`, this identifier could not be found", tokenc.repr()),
tokenc.line,
tokenc.col,
tokenc.file,
&format!("unknown identifier: `{}`, this identifier could not be found", tok.repr()),
tok.line,
tok.col,
tok.file.clone(),
{
let mut hashk = hashs.clone().into_keys();
hashk.sort();
Expand Down Expand Up @@ -159,13 +159,13 @@ impl Run {
"BilinmeyenTanımlayıcı",
&format!(
"bilinmeyen değişken: `{}`, bu değişken bulunamamıştır",
tokenc.repr()
tok.repr()
),
tokenc.line,
tokenc.col,
tokenc.file,
tok.line,
tok.col,
tok.file.clone(),
{
let mut hashk = hashs.clone().into_keys();
let mut hashk: Vec<_> = map.map.clone().into_keys().collect();
hashk.sort();
let n = hashk.binary_search(id).unwrap_err();
if hashk.is_empty() {
Expand All @@ -179,13 +179,13 @@ impl Run {
"UnknownIdentifier",
&format!(
"unknown identifier: `{}`, this identifier could not be found",
tokenc.repr()
tok.repr()
),
tokenc.line,
tokenc.col,
tokenc.file,
tok.line,
tok.col,
tok.file.clone(),
{
let mut hashk = hashs.clone().into_keys();
let mut hashk: Vec<_> = map.map.clone().into_keys().collect();
hashk.sort();
let n = hashk.binary_search(id).unwrap_err();
if hashk.is_empty() {
Expand Down

0 comments on commit e838715

Please sign in to comment.