Make a few lexer structs pub to fix E0446

This commit is contained in:
Sebastian Hahn 2015-12-24 17:04:37 +01:00
parent 6d17ccc9e4
commit 1c82d88a6b
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ pub struct Other;
/// edges by enumerating subsequent edges in the vectors until you /// edges by enumerating subsequent edges in the vectors until you
/// find one with a different `from` value. /// find one with a different `from` value.
#[derive(Debug)] #[derive(Debug)]
struct State { pub struct State {
kind: StateKind, kind: StateKind,
first_noop_edge: usize, first_noop_edge: usize,
first_test_edge: usize, first_test_edge: usize,
@ -52,7 +52,7 @@ pub struct NFAStateIndex(usize);
/// now we just ensure this during construction, but one could easily /// now we just ensure this during construction, but one could easily
/// sort). /// sort).
#[derive(Debug)] #[derive(Debug)]
struct Edges { pub struct Edges {
noop_edges: Vec<Edge<Noop>>, noop_edges: Vec<Edge<Noop>>,
// edges where we are testing the character in some way; for any // edges where we are testing the character in some way; for any

View File

@ -40,7 +40,7 @@ struct Items<'grammar> {
struct StateIndex(usize); struct StateIndex(usize);
#[derive(Copy, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[derive(Copy, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)]
enum Lookahead { pub enum Lookahead {
EOF, EOF,
Terminal(TerminalString), Terminal(TerminalString),
} }