changeset 42294 | 0f4372a2d2e4 |
parent 42293 | 6cca0343ea48 |
child 42297 | 140f283266b7 |
42293:6cca0343ea48 | 42294:0f4372a2d2e4 |
---|---|
109 Proof.context -> Ast.ast list -> Ast.ast (*exception Match*) |
109 Proof.context -> Ast.ast list -> Ast.ast (*exception Match*) |
110 val prtabs: syntax -> Printer.prtabs |
110 val prtabs: syntax -> Printer.prtabs |
111 type mode |
111 type mode |
112 val mode_default: mode |
112 val mode_default: mode |
113 val mode_input: mode |
113 val mode_input: mode |
114 val empty_syntax: syntax |
|
114 val merge_syntaxes: syntax -> syntax -> syntax |
115 val merge_syntaxes: syntax -> syntax -> syntax |
115 val basic_syntax: syntax |
116 val token_markers: string list |
116 val basic_nonterms: string list |
117 val basic_nonterms: string list |
117 val print_gram: syntax -> unit |
118 val print_gram: syntax -> unit |
118 val print_trans: syntax -> unit |
119 val print_trans: syntax -> unit |
119 val print_syntax: syntax -> unit |
120 val print_syntax: syntax -> unit |
120 val guess_infix: syntax -> string -> mixfix option |
121 val guess_infix: syntax -> string -> mixfix option |
597 end; |
598 end; |
598 |
599 |
599 |
600 |
600 (* basic syntax *) |
601 (* basic syntax *) |
601 |
602 |
602 val basic_syntax = update_syntax mode_default Syntax_Ext.pure_ext empty_syntax; |
603 val token_markers = |
604 ["_tfree", "_tvar", "_free", "_bound", "_var", "_numeral", "_inner_string"]; |
|
603 |
605 |
604 val basic_nonterms = |
606 val basic_nonterms = |
605 (Lexicon.terminals @ ["logic", "type", "types", "sort", "classes", |
607 (Lexicon.terminals @ ["logic", "type", "types", "sort", "classes", |
606 "args", "cargs", "pttrn", "pttrns", "idt", "idts", "aprop", "asms", |
608 "args", "cargs", "pttrn", "pttrns", "idt", "idts", "aprop", "asms", |
607 "any", "prop'", "num_const", "float_const", "index", "struct", |
609 "any", "prop'", "num_const", "float_const", "index", "struct", |