Struct oak_runtime::parse_state::ParseExpectation
[−]
[src]
pub struct ParseExpectation<S> { /* fields omitted */ }
Methods
impl<S> ParseExpectation<S>
[src]
fn new(farthest_read: S, expected: Vec<&'static str>) -> ParseExpectation<S>
impl<S> ParseExpectation<S> where
S: Location + CodeSnippet,
[src]
S: Location + CodeSnippet,
fn expected_items(&self) -> String
Trait Implementations
impl<S> Debug for ParseExpectation<S> where
S: Location + CodeSnippet,
[src]
S: Location + CodeSnippet,
Prints an error message of the form: 1:1: unexpected `a+1`, expecting `(` or `["0-9"]`.
where 1:1
is the line and the column where the error occurred.