lean4-htt/library/init
Leonardo de Moura 697f69020f fix(library/init/lean/parser/parser): new registerBuiltinParserAttribute
It is still broken since we apply attributes before we compile code.

Recall that attributes such as `@[export]` and `@[extern]` must be applied before we
compile code.

On the other hand, any attribute `attrName`
```
@[attrName] def foo := ...
```
which creates auxiliary definitions that depend on `foo` must be applied
AFTER we generate code for `foo`. Otherwise, we will fail to compile the
auxiliary definition since we don't have code for `foo` yet.

I will fix the issue above by allowing attributes to specify when they
should be applied. I will start with only two options: before and after
code compilation. In the future, we may need more options (e.g., before
elaboration), but I don't see the need yet.

cc @kha
2019-06-19 09:52:56 -07:00
..
control feat(library/init/control/monad): mark monadInhabited as an instance 2019-05-20 09:33:17 -07:00
data feat(library/init/data/string): add String.isPrefixOf 2019-06-06 14:20:50 -07:00
lean fix(library/init/lean/parser/parser): new registerBuiltinParserAttribute 2019-06-19 09:52:56 -07:00
coe.lean chore(library/init): Bool.tt => Bool.true and Bool.ff => Bool.false 2019-03-21 15:06:44 -07:00
core.lean refactor(library/init/lean/environment): cleanup and improve 2019-05-10 15:54:29 -07:00
default.lean chore(library/init,runtime,library/compiler): add fix primitive back 2019-03-27 17:13:53 -07:00
env_ext.lean chore(library/init/env_ext): update 2019-05-14 15:45:10 -07:00
fix.lean chore(library/init,runtime,library/compiler): add fix primitive back 2019-03-27 17:13:53 -07:00
init.md chore(*.md): fix/remove broken links 2016-02-23 10:11:24 -08:00
io.lean fix(library/init/lean/parser/parser): new registerBuiltinParserAttribute 2019-06-19 09:52:56 -07:00
platform.lean chore(library): capitalize types and namespaces 2019-03-21 15:06:43 -07:00
util.lean feat(library/init/util): add unsafeCast 2019-05-08 14:17:17 -07:00
wf.lean feat(library/init/wf): remove wf_term_hack 2019-03-27 12:41:16 -07:00