Kirill Andreev
b62cd58add
Add some more documentation
2020-08-11 12:31:55 +04:00
Kirill Andreev
eace901195
Remove debug print, document Parser.hs
2020-08-11 12:31:54 +04:00
Kirill Andreev
e6299a50ff
Make parser recognise all src/tests/contracts
2020-08-11 12:31:54 +04:00
Kirill Andreev
b4e6231340
Add [Big]Map literal/removal/projection parser
2020-08-11 12:31:54 +04:00
Kirill Andreev
2f269e32ea
Add attribute parser
2020-08-11 12:31:53 +04:00
Kirill Andreev
d928aaa39c
Add lists, if, assignments, string, tez parsers
2020-08-11 12:31:53 +04:00
Kirill Andreev
6e862bf5b9
Untie AST builder from comment accumulation
2020-08-11 12:31:53 +04:00
Kirill Andreev
1ed617c7d0
Convert parsers to applicative interface
...
Problem: The aquisition of current range is manual, and therefore
error-prone. The names in do-syntax create visual clutter.
Solution: Hide range aquisition (which makes it possible to do automatic
comment aquisition as well).
2020-08-11 12:31:52 +04:00
Kirill Andreev
a8b898d396
Improve grammar, add Parsers for many things
2020-08-11 12:31:52 +04:00
Kirill Andreev
83cc13dd48
Convert into GLR-way of operator parsing
2020-08-11 12:31:52 +04:00
Kirill Andreev
f3c537d2ca
Make it parse let-expressions
2020-08-11 12:31:52 +04:00
Kirill Andreev
ad7650ea48
Stabilise parsing of let-expressions
2020-08-11 12:31:51 +04:00
Kirill Andreev
0cec59988e
Prevent many/some from making last error-element
2020-08-11 12:31:51 +04:00
Kirill Andreev
00b4dabe36
Add Pretty instance to AST, Error and Range
2020-08-11 12:31:51 +04:00
Kirill Andreev
efe1afb61d
Add byte offsets to Range
2020-08-11 12:31:50 +04:00
Kirill Andreev
c603cd399d
Refactor AST -> types/parser, extract Range/Printer
2020-08-11 12:31:50 +04:00
Kirill Andreev
017db45f8d
Fix bulk of function header parser
2020-08-11 12:31:50 +04:00
Kirill Andreev
cb40392554
Add README.md with install/run instructions
2020-08-11 12:31:49 +04:00
Kirill Andreev
510cda6613
Initial commit of LIGO tooling
2020-08-11 12:31:49 +04:00