Leonardo de Moura
98d9022321
chore: cleanup and new test
2020-01-17 18:07:58 -08:00
Leonardo de Moura
d16a979931
chore: remove auxiliary code and parser for _app_
2020-01-17 17:43:44 -08:00
Leonardo de Moura
e4123585b2
feat: modify app representation
2020-01-17 16:49:22 -08:00
Leonardo de Moura
2eafb70585
chore: add auxiliary functions and simplify Quotation
2020-01-17 16:00:39 -08:00
Leonardo de Moura
a7025da89d
chore: add auxiliary app notation
2020-01-17 15:48:42 -08:00
Sebastian Ullrich
ec8227cfd4
fix: antiquotation kinds :term should not be new tokens
2020-01-17 09:42:34 -08:00
Leonardo de Moura
f2231ebbc0
feat: improve macro command parser
2020-01-17 09:37:36 -08:00
Leonardo de Moura
36d508a4ce
feat: simplify macroArg
2020-01-17 08:11:19 -08:00
Leonardo de Moura
257b5e27f3
feat: stx modifications
2020-01-17 07:44:51 -08:00
Leonardo de Moura
14ae1166b1
feat: add unboxSingleton trick to sepBy1
2020-01-16 20:57:18 -08:00
Leonardo de Moura
a6c745e93e
feat: allow underscore to be used as identifier
2020-01-16 17:51:01 -08:00
Leonardo de Moura
c32e9abd8f
feat: add `(tactic| ...) notation
...
@kha please check
2020-01-16 17:32:47 -08:00
Leonardo de Moura
0b26fd2983
feat: allow empty begin .. end blocks, better position information
2020-01-16 16:07:59 -08:00
Leonardo de Moura
5122d88527
fix: add SyntaxNodeKind for seq
2020-01-16 11:25:24 -08:00
Leonardo de Moura
2fbcf4d681
chore: minor
2020-01-15 20:53:24 -08:00
Leonardo de Moura
f919041400
feat: expand precedence
2020-01-15 20:53:23 -08:00
Leonardo de Moura
e488c0f3dc
fix: missing try
2020-01-15 20:53:23 -08:00
Leonardo de Moura
e48908aea1
refactor: uniform precedence representation
2020-01-15 20:53:23 -08:00
Leonardo de Moura
6b8de16ede
feat: simplify notation command and allow strLit
2020-01-15 20:53:23 -08:00
Leonardo de Moura
d9c6624a0a
feat: add support for trailing syntax
2020-01-15 20:53:23 -08:00
Leonardo de Moura
6835070447
feat: add macro parser
2020-01-15 20:53:23 -08:00
Leonardo de Moura
b14c7cb69b
feat: allow user to set nodeKind at syntax command
2020-01-14 18:51:31 -08:00
Leonardo de Moura
9f14a45cef
fix: Level parser
2020-01-14 18:43:42 -08:00
Leonardo de Moura
570ae2ff0e
feat: add mkFreshKind
2020-01-14 18:07:14 -08:00
Leonardo de Moura
c889d0ce48
fix: infixR helper only works for termParsers
2020-01-14 18:06:57 -08:00
Leonardo de Moura
5eebbc7bda
chore: remove unnecessary attributes
...
If one day we add elaboration functions for level and syntax, then we
can add them back.
2020-01-14 14:34:30 -08:00
Leonardo de Moura
abc6bc1447
chore: use try to fix : overload
2020-01-14 14:19:44 -08:00
Leonardo de Moura
ab8cbdc7e0
feat: improve syntax rules
2020-01-14 14:15:48 -08:00
Leonardo de Moura
b057f55e52
chore: add missing rules
2020-01-14 14:01:40 -08:00
Leonardo de Moura
17811a9286
feat: add syntax parsers
2020-01-14 13:50:06 -08:00
Leonardo de Moura
dd2936d28e
chore: move helper functions to Parser.lean
2020-01-14 13:33:20 -08:00
Leonardo de Moura
15a2d7d8ca
chore: tacticSymbol ==> nonReservedSymbol
2020-01-14 13:08:38 -08:00
Leonardo de Moura
ad0792f6c9
feat: add syntax category
2020-01-14 12:34:45 -08:00
Leonardo de Moura
e9d1014d63
feat: add ParserDescrCore.tacticSymbol constructor
2020-01-13 16:54:52 -08:00
Leonardo de Moura
2f5f00ed4f
feat: improve leadingIdentAsSymbol trick
2020-01-13 16:42:49 -08:00
Leonardo de Moura
397addb958
doc: leadingIdentAsSymbol trick
2020-01-13 16:38:12 -08:00
Leonardo de Moura
983579c0cf
feat: enable leadingIdentAsSymbol for tactic category
2020-01-13 16:20:34 -08:00
Leonardo de Moura
e98507023e
feat: basic tactic parser
2020-01-13 16:07:48 -08:00
Leonardo de Moura
b8146cc235
feat: add leadingIdentAsSymbol to ParserCategory
2020-01-13 16:07:21 -08:00
Leonardo de Moura
340d5f01f5
chore: symbolOrIdent ==> nonReservedSymbol
2020-01-13 14:32:34 -08:00
Leonardo de Moura
2b1869790c
feat: add tactic parser attributes
2020-01-13 13:00:19 -08:00
Sebastian Ullrich
c6100ed25f
feat: antiquoting rawIdent
2020-01-12 10:32:27 -08:00
Simon Hudon
92c8773137
feat: file IO using handles
2020-01-12 08:02:48 -08:00
Leonardo de Moura
82a36fbfe2
feat: declare_syntax_cat without importing Init.Lean
...
cc @Kha
2020-01-11 09:02:50 -08:00
Leonardo de Moura
e817257922
feat: elaborate declare_syntax_cat
...
TODO: `registerParserCategory` uses `registerAttribute` which relies
on the environment having a declaration of type `AttributeImpl`.
This is bad since forces users to import `Init.Lean`.
@Kha The key problem is that we cannot serialize `AttributeImpl`.
I will try to address this issue tomorrow. I am considering different
workarounds.
2020-01-10 21:10:02 -08:00
Leonardo de Moura
80e00a87c6
feat: add declare_syntax_cat command parser
2020-01-10 20:38:08 -08:00
Leonardo de Moura
799914daf2
feat: registerParserCategory
2020-01-10 20:32:16 -08:00
Leonardo de Moura
48600dbbfc
refactor: registerAttribute ==> registerBuiltinAttribute
2020-01-10 17:08:12 -08:00
Leonardo de Moura
a76b104f61
chore: move Message to Lean
2020-01-10 10:58:50 -08:00
Leonardo de Moura
5888a790d1
feat: add #synth command to new frontend
2020-01-09 09:42:22 -08:00