Class Cf_lexer.cursor


class cursor : int -> object .. end
Inherits
method error : int ->
(char * (< advance : char -> 'b; error : 'a; position : int; .. > as 'b))
Cf_seq.t -> unit as 'a
This method is invoked as c#error n z in a lexer when no rule matches the input stream z after n characters. The purpose is to give a derived class an opportunity to raise an exception rather than allow the parser to return without a match. In this base class, the method has no side effect.