Sebastian Ullrich
e8ca2e3f62
feat: formatter: push space at checkWsBefore
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
07928f301f
feat: formatter: separate tokens where necessary
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
33a963d82b
refactor: make formatter stack-based, much like the parser
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
37d890b950
fix: atoms might need backtracking as well, e.g. in fieldIdx <|> ident
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
c9d6636eae
feat: first, trivial formatter implementation
...
No actual token separation yet
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
b6b5f4c9c9
refactor: move whnf-eval functions into Lean.Meta.ReduceEval
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
1ceadd9f3d
feat: add [formatter] attribute
2020-07-29 18:02:57 +02:00
Sebastian Ullrich
1fe192802b
fix: parenthesizer
2020-07-29 15:18:00 +02:00
Sebastian Ullrich
d23625324c
refactor: move Syntax.Traverser
2020-07-29 15:18:00 +02:00
Leonardo de Moura
249bda16c0
chore: remove prelude commands from Lean package
2020-06-25 11:21:17 -07:00
Sebastian Ullrich
43caef0130
fix: parenthesizer
2020-06-13 11:13:37 +02:00
Leonardo de Moura
610ced2de5
chore: appPrec => maxPrec
2020-06-10 16:50:09 -07:00
Leonardo de Moura
f0a9e54a69
chore: make sure leading and trailing parsers use the same kind of check
2020-06-10 13:41:10 -07:00
Sebastian Ullrich
a78ceb8121
fix: parenthesizer
2020-06-09 11:26:00 +02:00
Sebastian Ullrich
c8ee21747b
chore: remove obsolete symbolAux, symbolNoWsAux
2020-06-09 10:37:00 +02:00
Leonardo de Moura
d2c2d95c47
chore: remove symbolAux
2020-06-08 16:12:06 -07:00
Leonardo de Moura
947369b4ce
chore: Parenthesizer issues after removing sortApp
...
@Kha Could you please double check these modifications.
I added a no-op for `checkRbpLt`. It is used at the `Sort` and `Type`
parsers.
As I described in previous commits, the `checkRBPGreater` comment and
implementation were misleading. It was actually succeeding when the
rbp was less than or equal to the given parameter. So, it was renamed
to `checkRbpLe`. So, is the depArrow parenthesizer ok? I did not check.
I updated the PPRoundtrip.lean.expected.out to make sure the tests
succeed, but we should revise it if there is a problem with the
modifications at Parenthesizer.lean
2020-06-03 15:46:33 -07:00
Leonardo de Moura
4ccc3fef52
chore: move Init.Lean files to Lean package
2020-05-26 15:04:35 -07:00