Sebastian Ullrich
7718795178
fix: mark Lean objects in C++ globals reachable from the new frontend as persistent
...
sed -Ei 's/(g_\w+)\s*= new (name|expr|format|level|string_ref)\W.*;/\0\n mark_persistent(\1->raw());/' src/kernel/**/*.cpp src/util/**/*.cpp src/library/**/*.cpp
2020-10-11 17:43:28 +02:00
Leonardo de Moura
7c76a19885
chore: fix includes
2020-05-22 14:17:25 -07:00
Leonardo de Moura
8bdca35282
chore: use #include <lean/runtime/...> for runtime .h files
2020-05-18 11:30:07 -07:00
Leonardo de Moura
4fe9179f19
feat: option declarations in Lean
2019-12-05 06:18:35 -08:00
Leonardo de Moura
a5c97e21bf
chore(library/init/lean): export as C functions
2019-08-16 20:15:30 -07:00
Leonardo de Moura
d664486eca
chore(util): move format to src/util
2019-06-07 10:58:23 -07:00
Leonardo de Moura
2ea7479ee9
Move sexpr/format/options to util/sexpr (reason: circular dependency between util and numerics lib), now numerics depend on util, and sexpr depends on numerics and util. Add scanner to frontend.
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-08-13 03:40:51 -07:00
Leonardo de Moura
e5fe016a44
Add pretty printer for s-expressions and options
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-08-08 18:38:18 -07:00
Soonho Kong
9516d9f88f
Restructure format, and fix bugs
2013-08-08 12:24:19 -07:00
Soonho Kong
fe9d2147d2
Improve performance of format by using "space_upto_line_break" instead of "fits"
2013-08-08 10:34:15 -07:00
Soonho Kong
5f10d47035
Change operators in format:
...
f1 + f2 = f1 <> f2
f1 ^ f2 = f1 <> " " <> f2
2013-08-02 19:17:29 -07:00
Soonho Kong
bddecd7d9c
Roll back to flatten(line) == " "
2013-08-02 19:16:19 -07:00
Soonho Kong
229b4f8759
Update format.cpp, flatten(LINE) = "" instead of " "
2013-08-01 18:53:41 -07:00
Soonho Kong
e898bb996c
Fix performance bug in format, add paren combinator
2013-08-01 18:03:51 -07:00
Soonho Kong
426c3a667a
Update format
...
1) operator+ is <> (previously, it was a + b = a <> ' ' <> b)
2) using sstream to compute length of text
2013-08-01 15:41:45 -07:00
Soonho Kong
a7910e1fe7
Update format.cpp & format.h + Update format tests
2013-08-01 13:43:49 -07:00
Soonho Kong
03b1ce643e
Restructure format, add group and flatten
2013-07-23 18:42:31 -07:00
Soonho Kong
71638a8ad4
Add pretty-print: format.cpp, format.h
2013-07-23 10:43:41 -07:00