Merge pull request #475 from notoria/debug

Debug & warnings
This commit is contained in:
Mark Thom
2020-05-09 18:35:16 -03:00
committed by GitHub
3 changed files with 5 additions and 3 deletions

View File

@@ -458,9 +458,9 @@ fn non_quoted_token<Iter: Iterator<Item = char>>(mut iter: Iter) -> bool {
} else if cut_char!(c) {
iter.next().is_none()
} else if c == '[' {
(iter.next() == Some(']') && iter.next().is_none())
iter.next() == Some(']') && iter.next().is_none()
} else if c == '{' {
(iter.next() == Some('}') && iter.next().is_none())
iter.next() == Some('}') && iter.next().is_none()
} else if solo_char!(c) {
!(c == '(' || c == ')' || c == '}' || c == ']' || c == ',' || c == '%' || c == '|')
} else {

View File

@@ -11,13 +11,14 @@ use std::convert::TryFrom;
use std::hash::Hash;
use std::rc::Rc;
#[derive(Clone, Copy)]
#[derive(Debug, Clone, Copy)]
enum IntIndex {
External(usize),
Fail,
Internal(usize),
}
#[derive(Debug)]
pub struct CodeOffsets {
atom_tbl: TabledData<Atom>,
pub constants: IndexMap<Constant, ThirdLevelIndex>,

View File

@@ -59,6 +59,7 @@ pub enum EOFAction {
Reset,
}
#[derive(Debug)]
pub enum AtEndOfStream {
Not,
End,