151 known_theories: (string * string) list}; |
151 known_theories: (string * string) list}; |
152 |
152 |
153 fun decode_args yxml = |
153 fun decode_args yxml = |
154 let |
154 let |
155 open XML.Decode; |
155 open XML.Decode; |
|
156 val position = Position.of_properties o properties; |
156 val (symbol_codes, (command_timings, (do_output, (verbose, (browser_info, |
157 val (symbol_codes, (command_timings, (do_output, (verbose, (browser_info, |
157 (document_files, (graph_file, (parent_name, (chapter, (name, (master_dir, |
158 (document_files, (graph_file, (parent_name, (chapter, (name, (master_dir, |
158 (theories, (global_theories, (loaded_theories, known_theories)))))))))))))) = |
159 (theories, (global_theories, (loaded_theories, known_theories)))))))))))))) = |
159 pair (list (pair string int)) (pair (list properties) (pair bool (pair bool (pair string |
160 pair (list (pair string int)) (pair (list properties) (pair bool (pair bool (pair string |
160 (pair (list (pair string string)) (pair string (pair string (pair string (pair string |
161 (pair (list (pair string string)) (pair string (pair string (pair string (pair string |
161 (pair string |
162 (pair string |
162 (pair (((list (pair Options.decode (list (string #> rpair Position.none)))))) |
163 (pair (((list (pair Options.decode (list (pair string position)))))) |
163 (pair (list (pair string string)) |
164 (pair (list (pair string string)) |
164 (pair (list (pair string string)) (list (pair string string))))))))))))))) |
165 (pair (list (pair string string)) (list (pair string string))))))))))))))) |
165 (YXML.parse_body yxml); |
166 (YXML.parse_body yxml); |
166 in |
167 in |
167 Args {symbol_codes = symbol_codes, command_timings = command_timings, do_output = do_output, |
168 Args {symbol_codes = symbol_codes, command_timings = command_timings, do_output = do_output, |