mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-30 23:11:04 +00:00
Make a few lexer structs pub to fix E0446
This commit is contained in:
parent
6d17ccc9e4
commit
1c82d88a6b
@ -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
|
||||||
|
@ -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),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user