Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file automaton_state_intf.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100open!ImportmoduleContext=structtypet=|Sexp_comment|SexpendmoduleFor_cst=structtypet={token_buffer:Buffer.t(** Starting positions of the current token **);mutabletoken_start_pos:Positions.pos}[@@derivingsexp_of]endmoduleKind=structtype('u,'s)t=|Positions:(Positions.Builder.t,unit)t|Sexp:(unit,Automaton_stack.t)t|Sexp_with_positions:(Positions.Builder.t,Automaton_stack.t)t|Cst:(For_cst.t,Automaton_stack.For_cst.t)tendmodulerecState:sigtype('u,'s)t={mutableautomaton_state:int;kind:('u,'s)Kind.t;mutabledepth:int(** Number of opened #| when parsing a block comment *);mutableblock_comment_depth:int(** Stack of ignoring depths; the current depth is pushed
each time a #; comment is entered. *);mutableignoring_stack:intlist(** When parsing an escape sequence of the form "\\NNN" or "\\XX", this accumulates
the computed number *);mutableescaped_value:int(** Buffer for accumulating atoms *);atom_buffer:Buffer.t;user_state:'u;mode:('u,'s)Mode.t;mutablefull_sexps:int;mutableoffset:int(** global offset **);mutableline_number:int;mutablebol_offset:int(** offset of beginning of line **)}end=StateandMode:sigtype('u,'s)t=|Single|Many|Eagerof{got_sexp:('u,'s)State.t->'s->'s;reraise_notrace:bool;mutableno_sexp_is_error:bool}end=ModemoduletypeAutomaton_state=sigmoduleContext=ContextmoduleFor_cst=For_cstmoduleKind=KindmoduleMode=ModemoduleState=Statetype('u,'s)t=('u,'s)State.tvalcreate:?initial_pos:Positions.pos->('u,'s)Mode.t->('u,'s)Kind.t->('u,'s)tvalreset:?pos:Positions.pos->_t->unitvalpositions:(Positions.Builder.t,_)t->Positions.tvalmode:('u,'s)t->('u,'s)Mode.t(** Number of characters fed to the parser *)valoffset:_t->int(** Position in the text *)valline:_t->intvalcolumn:_t->int(** Whether there are some unclosed parentheses *)valhas_unclosed_paren:('u,'s)t->boolvalset_error_state:_t->unit(**/**)(*_ Only for converting errors to the old parser errors *)valatom_buffer:_t->Buffer.t(*_ For coverate tests *)valautomaton_state:('u,'s)t->intvalcontext:_t->Context.tend