Commit Graph

880 Commits

Author SHA1 Message Date
Salvo 'LtWorf' Tomaselli
be932abcaa
More isinstance 2020-08-12 15:26:41 +02:00
Salvo 'LtWorf' Tomaselli
bd58442912
Make hash raise an error 2020-08-12 15:20:29 +02:00
Salvo 'LtWorf' Tomaselli
8d49b393c8
Give up on the literals
mypy is too stupid to infer them
2020-08-12 15:16:58 +02:00
Salvo 'LtWorf' Tomaselli
cabae01f7c
Happify mypy 2020-08-12 15:10:42 +02:00
Salvo 'LtWorf' Tomaselli
786a9d61f5
Rework the tokenizing function 2020-08-12 11:05:47 +02:00
Salvo 'LtWorf' Tomaselli
40a15178fe
Make mypy happy 2020-08-12 10:52:11 +02:00
Salvo 'LtWorf' Tomaselli
f21a7beb41
Assert to make mypy happy 2020-06-27 15:51:00 +02:00
Salvo 'LtWorf' Tomaselli
e5dad02397
Remove duplicate code 2020-06-27 15:49:19 +02:00
Salvo 'LtWorf' Tomaselli
9f171fa393
Check instance once 2020-06-27 15:47:55 +02:00
Salvo 'LtWorf' Tomaselli
79610ab8f5
More of the same 2020-06-18 17:34:59 +02:00
Salvo 'LtWorf' Tomaselli
95a4287e68
More of the same 2020-06-18 17:34:59 +02:00
Salvo 'LtWorf' Tomaselli
e35fc0f4bd
More type safety 2020-06-18 17:34:59 +02:00
Salvo 'LtWorf' Tomaselli
16459868cf
Import directly names from parser module 2020-06-18 17:34:59 +02:00
Salvo 'LtWorf' Tomaselli
9c3e012e71
More type safety 2020-06-18 17:34:59 +02:00
Salvo 'LtWorf' Tomaselli
c5a71be509
Tell mypy about the values of name in nodes 2020-06-18 17:34:59 +02:00
Salvo 'LtWorf' Tomaselli
4ab01c9e47
Not a constant 2020-06-18 17:34:58 +02:00
Salvo 'LtWorf' Tomaselli
aa6568bac2
Check class too when matching 2020-06-18 17:34:58 +02:00
Salvo 'LtWorf' Tomaselli
15f5de6958
Raise exception, will fix it later 2020-06-18 17:34:58 +02:00
Salvo 'LtWorf' Tomaselli
6a33e8ee08
Improve type annotations 2020-06-18 17:34:58 +02:00
Salvo 'LtWorf' Tomaselli
4ef4d679ac
Remove object inheritance 2020-06-18 17:34:58 +02:00
Salvo 'LtWorf' Tomaselli
3837a849a3
Run mypy on travis 2020-06-18 17:34:55 +02:00
Salvo 'LtWorf' Tomaselli
d3d3c47281
Merge pull request #24 from ltworf/fix_print
Fix print
2020-06-18 17:34:36 +02:00
Salvo 'LtWorf' Tomaselli
a74c17f323
More pythonic code 2020-06-18 17:24:45 +02:00
Salvo 'LtWorf' Tomaselli
dcde484a63
Usual isinstance for mypy 2020-06-18 17:24:23 +02:00
Salvo 'LtWorf' Tomaselli
3b1e90b30e
Merge pull request #23 from ltworf/improve_parser
Improve parser
2020-06-18 17:16:53 +02:00
Salvo 'LtWorf' Tomaselli
31a59e1de0
Fix error reporting in the parser 2020-06-18 17:14:30 +02:00
Salvo 'LtWorf' Tomaselli
0df6a263e5
Check it after removing nesting 2020-06-18 17:14:12 +02:00
Salvo 'LtWorf' Tomaselli
e5f7b1745c
Add new error about empty expressions. 2020-06-18 17:14:04 +02:00
Salvo 'LtWorf' Tomaselli
7cb6d4941f
More parse details 2020-06-18 17:13:45 +02:00
Salvo 'LtWorf' Tomaselli
3056dafbff
Reuse code for optimizations 2020-06-18 17:12:57 +02:00
Salvo 'LtWorf' Tomaselli
8fd2db12b5
Reuse code to generate the projection python code 2020-06-18 17:10:34 +02:00
Salvo 'LtWorf' Tomaselli
04f568ad50
Merge pull request #21 from ltworf/pythonic
More pythonic code
2020-06-09 23:52:35 +02:00
Salvo 'LtWorf' Tomaselli
5d3823d0ea
Merge pull request #20 from ltworf/refactor_parser
Refactor parser
2020-06-09 23:49:11 +02:00
Salvo 'LtWorf' Tomaselli
74e92d2211
More pythonic code 2020-06-09 23:48:43 +02:00
Salvo 'LtWorf' Tomaselli
d7145171de
Finish fixing the optimization
I wrote it ages ago, I was not as skilled as I am now.
2020-06-09 23:47:04 +02:00
Salvo 'LtWorf' Tomaselli
f4a4b847af
selection_and_product partial 2020-06-09 22:47:54 +02:00
Salvo 'LtWorf' Tomaselli
f4a8344f3e
projection_and_union 2020-06-09 19:43:56 +02:00
Salvo 'LtWorf' Tomaselli
b987180d1c
useless_projection 2020-06-09 19:37:57 +02:00
Salvo 'LtWorf' Tomaselli
f139257d2c
Typing 2020-06-09 19:37:00 +02:00
Salvo 'LtWorf' Tomaselli
67d050e07d
Execute context optimizations 2020-06-09 19:34:26 +02:00
Salvo 'LtWorf' Tomaselli
4337e6073e
CHANGELOG 2020-06-09 19:31:56 +02:00
Salvo 'LtWorf' Tomaselli
a2111a90c1
select_union_intersect_subtract 2020-06-09 19:27:47 +02:00
Salvo 'LtWorf' Tomaselli
ff2f890b98
Remove legacy thing 2020-06-09 19:16:02 +02:00
Salvo 'LtWorf' Tomaselli
7806a0a27e
union_and_product_ 2020-06-09 19:15:34 +02:00
Salvo 'LtWorf' Tomaselli
34ed9405ea
swap_rename_select 2020-06-09 19:05:20 +02:00
Salvo 'LtWorf' Tomaselli
2ad28ba9ad
Add test to hit swap_rename_select 2020-06-09 18:40:01 +02:00
Salvo 'LtWorf' Tomaselli
cac990b598
swap_rename_projection 2020-06-09 18:27:11 +02:00
Salvo 'LtWorf' Tomaselli
b17bb103f6
Small fixes 2020-06-09 18:26:03 +02:00
Salvo 'LtWorf' Tomaselli
b3b5afec63
Some convenience methods 2020-06-09 15:56:16 +02:00
Salvo 'LtWorf' Tomaselli
e4d62e9571
futile_renames, subsequent_renames 2020-06-09 15:34:40 +02:00