Commit graph

14 commits

Author SHA1 Message Date
Leonardo de Moura
c3e9ac73e2 refactor: default ==> arbitrary
Make sure it is opaque, and avoid `irreducible`
2019-11-05 14:42:42 -08:00
Leonardo de Moura
06fe9d3afa refactor: EState ==> EStateM 2019-11-05 09:05:10 -08:00
Leonardo de Moura
5bb5ef6296 refactor: State ==> StateM 2019-11-05 07:56:19 -08:00
Leonardo de Moura
0f61de712e chore: add helper functions 2019-10-28 13:40:50 -07:00
Leonardo de Moura
df8bbf5438 chore: remove Init.Control.Combinators
Reason: it contains a bunch of little functions that are supposed to
be defined in other modules.
2019-10-27 18:58:40 -07:00
Leonardo de Moura
34765c97d7 chore: rename mmap, mfoldl, mfor ...
We now use `mapM`, `foldlM`, ... like Haskell.
Motivation: fixes the inconsistent naming convetion. We are already
using the `M` suffix for functions such as `anyM`. We used `anyM`
because `many` is a valid English word.

cc @kha @dselsam
2019-10-27 18:19:34 -07:00
Leonardo de Moura
2eeeab68b3 chore: missing inline 2019-10-25 10:45:09 -07:00
Leonardo de Moura
4794902f42 chore: ensure dummy functions are inlined 2019-10-21 18:47:24 -07:00
Leonardo de Moura
870db93c8e feat: add EState.Backtrackable class
@dselsam @kha: The new class allows us to use `EState` even when part of
the state must be backtrackable. The default instance ensures that
there is no backtrackable state. The new test shows how to use it.
2019-10-21 18:39:59 -07:00
Leonardo de Moura
5d1f104b8d fix: EState.set 2019-10-21 17:34:41 -07:00
Leonardo de Moura
d8dd61ae5a chore: remove optimization
We will add support for returning values on the stack, and will not
need to rely on the trick used in this module.
2019-10-21 16:56:07 -07:00
Leonardo de Moura
0714716477 fix: file and import names, tests and stage0
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2019-10-04 17:04:02 -07:00
Leonardo de Moura
a2abbdbf9a chore: fix imports using script
This is just a draft.
```
for f in `find . -name '*.lean'`; do echo $f; gsed "/^import/s/\b\(.\)/\u\1/g" $f > tmp; gsed "/^Import/s/Import/import/g" tmp > $f; done
```
2019-10-04 14:34:58 -07:00
Leonardo de Moura
de4d3152f1 chore: use CamelCase to name files and directories 2019-10-04 14:23:08 -07:00