Struct menhir_runtime::lexing::UnexpectedEof [] [src]

pub struct UnexpectedEof<Location>(pub Location);

This error indicates that the lexer reached the end of the input stream while the parser was still expecting input.

It is used when using an IteratorLexer as input, if the underlying iterator returns None. It can also be used to report the end of the stream when implementing a custom Lexer.

Trait Implementations

impl<Location: Clone> Clone for UnexpectedEof<Location>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Location: Copy> Copy for UnexpectedEof<Location>
[src]

impl<Location: Debug> Debug for UnexpectedEof<Location>
[src]

[src]

Formats the value using the given formatter.