Skip to content

Commit

Permalink
Merge pull request #51 from Ph0enixKM/remove-debug
Browse files Browse the repository at this point in the history
Remove debug logs
  • Loading branch information
Ph0enixKM authored Jul 6, 2024
2 parents f8a42a8 + 7cb5c5b commit 7996e29
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "heraclitus-compiler"
version = "1.6.0"
version = "1.6.1"
edition = "2021"
description = "Compiler frontend for developing great programming languages"
license = "MIT"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ let tokens = cc.tokenize()?;

# Change log 🚀

## Version 1.6.1
### Fix:
- Remove debug information

## Version 1.6.0
### Fix:
- Heraclitus no longer panics when error happens out of bounds of file
Expand Down
8 changes: 0 additions & 8 deletions src/compiling/lexing/region_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@ impl RegionHandler {
ReadMode::History => reader.get_history(cb(candidate).len() + 2),
ReadMode::Future => reader.get_history(3)
}.is_some_and(|val| val.starts_with(&self.escape.to_string().repeat(2)));
if escaped_suffix {
dbg!(
reader.get_history(cb(candidate).len() + 1),
reader.get_history(cb(candidate).len() + 2),
escape_escaped
);
}
let is_escaped = escaped_suffix && !escape_escaped;
!is_escaped && &code_chunk == cb(candidate)
}
Expand Down Expand Up @@ -223,7 +216,6 @@ mod test {
result.push(reader.get_index());
}
}
dbg!(expected.clone(), result.clone());
assert_eq!(expected, result);
}
}
3 changes: 1 addition & 2 deletions tests/cobra_modules/if_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ impl SyntaxModule<DefaultMetadata> for IfStatement {
IfStatement { cond: Expr::new(), block: Block::new() }
}
fn parse(&mut self, meta: &mut DefaultMetadata) -> SyntaxResult {
dbg!("IfStatement");
token(meta, "if")?;
syntax(meta, &mut self.cond)?;
token(meta, ":")?;
Expand All @@ -23,4 +22,4 @@ impl SyntaxModule<DefaultMetadata> for IfStatement {
syntax(meta, &mut self.block)?;
Ok(())
}
}
}

0 comments on commit 7996e29

Please sign in to comment.