(* real macros *)
| Check of loc * 'term
| Hint of loc
- | Quit of loc
(** To be increased each time the command type below changes, used for "safe"
* marshalling *)
(* real macros *)
| Check (_, term) -> sprintf "Check %s" (term_pp term)
| Hint _ -> "hint"
- | Quit _ -> "Quit"
let pp_associativity = function
| Gramext.LeftA -> "left associative"
| GrafiteAst.Hint _
| GrafiteAst.WLocate _ as macro ->
metasenv,macro
- | GrafiteAst.Quit _ -> assert false
] ];
macro: [
- [ [ IDENT "quit" ] -> GrafiteAst.Quit loc
-(* | [ IDENT "abort" ] -> GrafiteAst.Abort loc *)
-(* | [ IDENT "undo" ]; steps = OPT NUMBER ->
- GrafiteAst.Undo (loc, int_opt steps)
- | [ IDENT "redo" ]; steps = OPT NUMBER ->
- GrafiteAst.Redo (loc, int_opt steps) *)
- | [ IDENT "check" ]; t = term ->
+ [ [ IDENT "check" ]; t = term ->
GrafiteAst.Check (loc, t)
| [ IDENT "hint" ] -> GrafiteAst.Hint loc
| [ IDENT "whelp"; "match" ] ; t = term ->
<keyword-list _name = "Matita Macro" style = "Others 3" case-sensitive="TRUE">
- <keyword>print</keyword>
<keyword>check</keyword>
<keyword>hint</keyword>
- <keyword>quit</keyword>
<keyword>set</keyword>
</keyword-list>
let t_and_ty = Cic.Cast (term,ty) in
guistuff.mathviewer#show_entry (`Cic (t_and_ty,metasenv));
[], parsed_text_length
- (* TODO *)
- | TA.Quit _ -> failwith "not implemented"
and eval_executable include_paths (buffer : GText.buffer) guistuff
lexicon_status grafite_status user_goal unparsed_text skipped_txt nonskipped_txt