package lambdapi
Module Parsing.LpParserSource
val err_msg :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
string ->
LpLexer.token list ->
stringval loc_err_msg :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
string ->
LpLexer.token list ->
Common.Pos.strlocval expected :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
string ->
LpLexer.token list ->
'aval extend_pos :
'b OneLookaheadCellLexbuf.lexbuf ->
(Lexing.position * Lexing.position) ->
'a ->
'a Common.Pos.locval qid_of_path :
(Lexing.position * Lexing.position) ->
string list ->
(string list * string) Common.Pos.locval make_abst :
'a OneLookaheadCellLexbuf.lexbuf ->
Lexing.position ->
Syntax.p_params list ->
Syntax.p_term ->
Lexing.position ->
Syntax.p_termval make_prod :
'a OneLookaheadCellLexbuf.lexbuf ->
Lexing.position ->
Syntax.p_params list ->
Syntax.p_term ->
Lexing.position ->
Syntax.p_termval ident_of_term :
(Lexing.position * Lexing.position) ->
Syntax.p_term_aux Common.Pos.loc ->
string Common.Pos.locval prefix :
LpLexer.token ->
(LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
'aval list :
LpLexer.token list ->
(LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
'a listval list_with_sep :
LpLexer.token list ->
(LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) ->
LpLexer.token ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
'a listUnfinishedProof is raised when a proof is syntactically broken. It takes as arguments: a located error message strloc, a p_symbol data structure containing the data of the declared symbol the proof is about, but with the field p_sym_prf containing only the prefix of the proof that is syntactically correct, and the position popt of the symbol command (until where the error occurred).
It is raised by the second function command (the one that is exported) in case a command is not terminated by a semicolon, or by the function proof_end when the current token is not a valid proof end token (this includes any syntax error in the middle of a proof script, e.g. an error in the name of a tactic keyword). In the second case, it is raised with popt=None and a p_symbol whose only meaningful field is p_sym_prf. The other fields are updated later as follows.
The function proof_term catches it and raises it again right away after updating p_symbol with the correct p_sym_trm in case a term has been given.
The function symbol catches it and raises it again right away after updating all the other fields of p_symbol.
The first function command catches it and raises it again right away after updating popt.
val unfinished_proof :
Syntax.p_proof ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
string ->
LpLexer.token list ->
'aval list_with_sep_or_termin :
LpLexer.token list ->
('a list ref -> LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) ->
LpLexer.token ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
'a listval nelist :
LpLexer.token list ->
(LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
'a listval nelist_with_sep :
(LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) ->
LpLexer.token ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
'a listval qid :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
(string list * string) Common.Pos.locval qid_or_regexp :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
(string list * string) Common.Pos.locval qid_expl :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
(string list * string) Common.Pos.locval open_ :
bool ->
bool ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_command_auxval symbol :
Syntax.p_modifier list ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_command_auxval inductive_cmd :
Syntax.p_modifier list ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_command_auxval constructor :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_ident * Syntax.p_termval equation :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Parsing__Syntax.p_term_aux Common.Pos.loc
* Parsing__Syntax.p_term_aux Common.Pos.locval query_print :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.print ->
Syntax.p_query_aux Common.Pos.locval term_proof :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_term option * (Syntax.p_proof * Syntax.p_proof_end) optionval proof :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_proof * Syntax.p_proof_endval proof_end :
Syntax.p_proof ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_proof * Syntax.p_proof_endval app :
(Lexing.position * Lexing.position) ->
Syntax.p_term ->
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_termval binder :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
Syntax.p_params list * Syntax.p_termval rocqbinder :
LpLexer.token OneLookaheadCellLexbuf.lexbuf ->
LpLexer.token ->
Syntax.p_params list * Syntax.p_term