aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-10 18:01:01 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-10 18:01:49 +0100
commit225cd164c8307d39d6e7f4881253ef1de66469b6 (patch)
tree6502549db6a43989e77ac77b559ae8ff53c2114b /src/compiler.rs
parentf5a82d852abdb3b6b3bd342572ac5adee6affb7b (diff)
downloadsylt-225cd164c8307d39d6e7f4881253ef1de66469b6.tar.gz
change debug print output
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 9ab868f..e83c269 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -596,8 +596,7 @@ impl Compiler {
/// The line of the current token.
fn line(&self) -> usize {
if self.section().tokens.len() == 0 {
- // unreachable!("An error occured without a section.");
- 666666
+ 0
} else {
self.section().tokens[std::cmp::min(self.current_token, self.section().tokens.len() - 1)].1
}