@@ -458,9 +458,9 @@ fn non_quoted_token<Iter: Iterator<Item = char>>(mut iter: Iter) -> bool {
|
|||||||
} else if cut_char!(c) {
|
} else if cut_char!(c) {
|
||||||
iter.next().is_none()
|
iter.next().is_none()
|
||||||
} else if c == '[' {
|
} else if c == '[' {
|
||||||
(iter.next() == Some(']') && iter.next().is_none())
|
iter.next() == Some(']') && iter.next().is_none()
|
||||||
} else if c == '{' {
|
} else if c == '{' {
|
||||||
(iter.next() == Some('}') && iter.next().is_none())
|
iter.next() == Some('}') && iter.next().is_none()
|
||||||
} else if solo_char!(c) {
|
} else if solo_char!(c) {
|
||||||
!(c == '(' || c == ')' || c == '}' || c == ']' || c == ',' || c == '%' || c == '|')
|
!(c == '(' || c == ')' || c == '}' || c == ']' || c == ',' || c == '%' || c == '|')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -11,13 +11,14 @@ use std::convert::TryFrom;
|
|||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
enum IntIndex {
|
enum IntIndex {
|
||||||
External(usize),
|
External(usize),
|
||||||
Fail,
|
Fail,
|
||||||
Internal(usize),
|
Internal(usize),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct CodeOffsets {
|
pub struct CodeOffsets {
|
||||||
atom_tbl: TabledData<Atom>,
|
atom_tbl: TabledData<Atom>,
|
||||||
pub constants: IndexMap<Constant, ThirdLevelIndex>,
|
pub constants: IndexMap<Constant, ThirdLevelIndex>,
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ pub enum EOFAction {
|
|||||||
Reset,
|
Reset,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum AtEndOfStream {
|
pub enum AtEndOfStream {
|
||||||
Not,
|
Not,
|
||||||
End,
|
End,
|
||||||
|
|||||||
Reference in New Issue
Block a user