equal
deleted
inserted
replaced
5 (specified by mixfix declarations). |
5 (specified by mixfix declarations). |
6 *) |
6 *) |
7 |
7 |
8 signature SYNTAX = |
8 signature SYNTAX = |
9 sig |
9 sig |
10 include LEXICON0 |
|
11 val max_pri: int |
10 val max_pri: int |
|
11 val const: string -> term |
|
12 val free: string -> term |
|
13 val var: indexname -> term |
12 val root: string Config.T |
14 val root: string Config.T |
13 val positions_raw: Config.raw |
15 val positions_raw: Config.raw |
14 val positions: bool Config.T |
16 val positions: bool Config.T |
15 val ambiguity_enabled: bool Config.T |
17 val ambiguity_enabled: bool Config.T |
16 val ambiguity_level_raw: Config.raw |
18 val ambiguity_level_raw: Config.raw |
141 structure Syntax: SYNTAX = |
143 structure Syntax: SYNTAX = |
142 struct |
144 struct |
143 |
145 |
144 val max_pri = Syntax_Ext.max_pri; |
146 val max_pri = Syntax_Ext.max_pri; |
145 |
147 |
|
148 val const = Lexicon.const; |
|
149 val free = Lexicon.free; |
|
150 val var = Lexicon.var; |
|
151 |
|
152 |
146 |
153 |
147 (** inner syntax operations **) |
154 (** inner syntax operations **) |
148 |
155 |
149 (* configuration options *) |
156 (* configuration options *) |
150 |
157 |
717 (if add then update_syntax else remove_syntax) prmode (Mixfix.syn_ext_consts is_logtype decls); |
724 (if add then update_syntax else remove_syntax) prmode (Mixfix.syn_ext_consts is_logtype decls); |
718 |
725 |
719 val update_trrules = ext_syntax Syntax_Ext.syn_ext_rules o check_rules; |
726 val update_trrules = ext_syntax Syntax_Ext.syn_ext_rules o check_rules; |
720 val remove_trrules = remove_syntax mode_default o Syntax_Ext.syn_ext_rules o check_rules; |
727 val remove_trrules = remove_syntax mode_default o Syntax_Ext.syn_ext_rules o check_rules; |
721 |
728 |
722 |
|
723 (*export parts of internal Syntax structures*) |
|
724 val syntax_tokenize = tokenize; |
|
725 open Lexicon; |
|
726 val tokenize = syntax_tokenize; |
|
727 |
|
728 end; |
729 end; |
729 |
730 |