Commit graph

10409 commits

Author SHA1 Message Date
Leonardo de Moura
fffe69fdf9 feat(library/vm,library/tactic/vm_monitor): use optionT to define vm monad 2016-11-14 16:13:56 -08:00
Leonardo de Moura
bd249bb1cc fix(library/init/option): remove unused variable 2016-11-14 15:38:09 -08:00
Leonardo de Moura
7232e3a076 feat(library/vm/vm): invoke debugger (aka vm_monitor) 2016-11-14 14:45:49 -08:00
Leonardo de Moura
7114326b9f fix(util/realpath): malloc/free mismatch
see #1190
2016-11-14 09:42:40 -08:00
Leonardo de Moura
0fab2c6a83 feat(library/init/meta): add VM introspection API 2016-11-13 14:20:05 -08:00
Leonardo de Moura
fbca131976 fix(library/init/meta/congr_lemma): typo 2016-11-13 12:54:26 -08:00
Leonardo de Moura
5f55a7c0e1 fix(library/inductive_compiler/util): allow untrusted/meta declarations when checking intermediate steps
We need that when declaring meta inductive types with nested inductives.
2016-11-13 12:32:49 -08:00
Leonardo de Moura
a7344671e1 feat(library/vm/vm): add stack_info 2016-11-13 12:20:02 -08:00
Leonardo de Moura
99b30d9c91 fix(tests/lean): remove config.lean 2016-11-13 09:38:40 -08:00
Leonardo de Moura
381b2edaf7 feat(library/vm/vm): store .olean file name at vm_decl's 2016-11-11 16:19:19 -08:00
Leonardo de Moura
e673fa65ba feat(library/vm/vm): Store position information at vm_decl's 2016-11-11 15:39:32 -08:00
Leonardo de Moura
b59c10118d fix(*): memory leaks 2016-11-11 11:56:54 -08:00
Leonardo de Moura
1a8b582533 fix(frontends/lean/info_manager): uninitialized variable 2016-11-11 11:50:05 -08:00
Leonardo de Moura
714b780636 feat(frontends/lean/elaborator): save type info for let-exprs 2016-11-10 16:34:48 -08:00
Gabriel Ebner
3c37e3cd25 fix(bin/lean-gdb): support python 2 2016-11-10 15:46:50 -08:00
Leonardo de Moura
d95645bd89 feat(frontends/lean/elaborator): save type information for binders 2016-11-10 15:39:38 -08:00
Sebastian Ullrich
2a37611d1f feat(emacs): implement show-goal-at-pos using faster info manager 2016-11-10 15:17:15 -08:00
Sebastian Ullrich
e5fb11a219 chore(emacs/lean-debug): toggle via lean-debug-mode and automatically open debug buffer 2016-11-10 15:17:06 -08:00
Leonardo de Moura
922d48524b fix(frontends/lean): fixes #1188
This commit also adds support for recording the type of local variables
in the info_manager
2016-11-10 15:08:25 -08:00
Leonardo de Moura
29e5464e42 fix(frontends/lean/tactic_notation): fix minor problem for info at position
See comment for details.
2016-11-10 13:48:35 -08:00
Leonardo de Moura
0e20d9493b feat(library/quote): make sure to syntactically identical quoted expressions are not equated
Motivation: preserve position information
2016-11-10 13:35:54 -08:00
Leonardo de Moura
40fca8efd4 feat(frontends/lean): add tactic.save_type_info, preserve pos info at translate 2016-11-10 11:51:05 -08:00
Leonardo de Moura
a7af70da2e feat(library/vm): add expr.copy_pos_info 2016-11-10 11:50:38 -08:00
Leonardo de Moura
83e0e7104c feat(frontends/lean): save tactic_state in the info_manager 2016-11-10 09:56:36 -08:00
Leonardo de Moura
7d3c0c24f8 fix(library/compiler): missing file 2016-11-10 09:34:32 -08:00
Leonardo de Moura
d6000416f8 feat(library/compiler,frontends/lean/elaborator): (try to) preserve position information
We will use this information in the debugger.
2016-11-09 16:51:48 -08:00
Leonardo de Moura
b79b76db83 feat(library/compiler/vm_compiler): improve local_info collection 2016-11-09 12:18:44 -08:00
Gabriel Ebner
a3aced1b30 feat(frontends/lean/structure_cmd): record position of structure declaration 2016-11-08 19:22:42 -08:00
Leonardo de Moura
6ce00a9b45 fix(library/compiler): move inliner to the beginning
Reason: the inliner may introduce recursors, non eta-expanded terms,
etc. Before this commit, it was "undoing" previous compilation steps.
2016-11-08 16:14:01 -08:00
Leonardo de Moura
c6558f8af5 feat(library/num): handle nat.zero and (nat.succ nat.zero) at to_num 2016-11-08 16:13:21 -08:00
Leonardo de Moura
6b3da2daf4 feat(library/compiler/vm_compiler): save local_info for let-expressions 2016-11-08 15:50:38 -08:00
Leonardo de Moura
d66584f390 feat(library/vm,library/compiler): save argument names 2016-11-08 15:10:04 -08:00
Gabriel Ebner
cd32335c51 feat(emacs/lean-info): push marker to go back after find-definition 2016-11-08 11:23:31 -08:00
Sebastian Ullrich
25803e745c fix(emacs/lean-info): support jumping to definition in current file 2016-11-08 09:10:09 -08:00
Sebastian Ullrich
131f972499 fix(emacs): fix support for emacs < 25 again 2016-11-08 09:10:09 -08:00
Sebastian Ullrich
b0037684d8 fix(frontends/lean/elaborator): pass info_manager to nested elaborators via thread-local variable 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
9bb167d619 chore(frontends/lean): bring back beautiful #ifdefs around json.hpp usage 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
ef633abec7 chore(*): fix test and style 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
bb75e6398a feat(emacs, frontends/lean/info_manager): implement 'go to definition' 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
96c9276f52 feat(emacs): first working version of info-at-pos 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
bbb06dec70 fix(frontends/lean): pass around info_manager at more locations 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
1f9554a014 refactor(frontends/lean/info_manager): always pass column in requests 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
02a6063923 feat(bin/lean-gdb): support pretty-printing rb_map and rb_tree 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
ba1b6165e3 feat(frontends, shell): implement basic server 'info' command 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
388b337f50 chore(frontends/lean/info_manager): make copyable and integrate into snapshots 2016-11-08 08:37:41 -08:00
Sebastian Ullrich
67017cecef chore(shell): add back info_manager from master and make it compile 2016-11-08 08:37:41 -08:00
Leonardo de Moura
ab12259ba7 chore(util/timeit): style 2016-11-08 08:36:27 -08:00
Leonardo de Moura
abd96e748f fix(frontends/lean/parser): crash on Win 10 2016-11-07 21:30:19 -08:00
Leonardo de Moura
bb5033dc57 feat(util/timeit, frontends/lean/definition_cmds): add xtimeit 2016-11-07 17:01:19 -08:00
Gabriel Ebner
e88b97d46d fix(library/vm/vm): initialize m_total_time field 2016-11-07 15:03:25 -08:00