Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
MenhirGLR.InputSourceThis module provides an abstraction of the input stream that is convenient for use in an LR or GLR parser. It manages a one-place buffer which stores the lookahead symbol. It also manages two vectors of positions, which are used to translate dates into positions.
A date is an index into the input stream, viewed as a sequence of tokens; therefore it represents a place in between two tokens.
An input stream is a (finite or infinite) sequence of tokens.
create lexer lexbuf creates an input stream out of the lexer lexer and lexing buffer lexbuf.
lookahead input returns the first token of the input stream, without consuming it.
consume input consumes the first token of the input stream. It is an error to call consume without first calling lookahead at least once.
start_position input date translates the date date to a position, under the assumption that this date represents a start date, that is, the left end of a date interval.
end_position input date translates the date date to a position, under the assumption that this date represents an end date, that is, the right end of a date interval.