| WLocate of loc * string
| WElim of loc * 'term
(* real macros *)
- | Print of loc * string
| Check of loc * 'term
| Hint of loc
| Quit of loc
(* real macros *)
| Check (_, term) -> sprintf "Check %s" (term_pp term)
| Hint _ -> "hint"
- | Print (_, name) -> sprintf "Print \"%s\"" name
| Quit _ -> "Quit"
let pp_associativity = function
| GrafiteAst.Hint _
| GrafiteAst.WLocate _ as macro ->
metasenv,macro
- | GrafiteAst.Quit _
- | GrafiteAst.Print _ -> assert false
+ | GrafiteAst.Quit _ -> assert false
GrafiteAst.WElim (loc, t)
| [ IDENT "whelp"; IDENT "hint" ] ; t = term ->
GrafiteAst.WHint (loc,t)
- | [ IDENT "print" ]; name = QSTRING -> GrafiteAst.Print (loc, name)
]
];
alias_spec: [
[], parsed_text_length
(* TODO *)
| TA.Quit _ -> failwith "not implemented"
- | TA.Print (_,kind) -> failwith "not implemented"
and eval_executable include_paths (buffer : GText.buffer) guistuff
lexicon_status grafite_status user_goal unparsed_text skipped_txt nonskipped_txt