Commit Graph

744 Commits

Author SHA1 Message Date
Salvo 'LtWorf' Tomaselli
9d1f25d65d Parse unary expressions left to right and fail if extra tokens are found
This fixes the case where there is garbage after a valid unary operator.
2020-08-12 20:16:40 +02:00
Salvo 'LtWorf' Tomaselli
d5a8975d9b Add test that fails 2020-08-12 19:50:12 +02:00
Salvo 'LtWorf' Tomaselli
4aa4a54ab0 Merge pull request #22 from ltworf/security_policy
Security policy
2020-08-12 19:42:47 +02:00
Salvo 'LtWorf' Tomaselli
9e2b9fa72c Convert to deb-pkg target 2020-08-12 19:36:26 +02:00
Salvo 'LtWorf' Tomaselli
3aa110ffaf .gitignore 2020-08-12 19:36:26 +02:00
Salvo 'LtWorf' Tomaselli
a25fbb4584 Debian dir from branch
Because of impossible merge conflicts, just copying the files
2020-08-12 19:36:26 +02:00
Salvo 'LtWorf' Tomaselli
5c8740dd6e Better specify 2020-08-12 19:36:25 +02:00
Salvo 'LtWorf' Tomaselli
69df15bddc SECURITY.md 2020-08-12 19:36:25 +02:00
Salvo 'LtWorf' Tomaselli
8f46eae9f5 Merge pull request #25 from ltworf/mypy
Mypy
2020-08-12 19:20:00 +02:00
Salvo 'LtWorf' Tomaselli
2ceaa3e1db The final rename 2020-08-12 17:35:55 +02:00
Salvo 'LtWorf' Tomaselli
731327c079 Var rename 2020-08-12 17:34:46 +02:00
Salvo 'LtWorf' Tomaselli
fbef0f9deb Make mypy happy 2020-08-12 17:32:41 +02:00
Salvo 'LtWorf' Tomaselli
6fcb5ecb85 Bring more happyness to mypy 2020-08-12 15:33:41 +02:00
Salvo 'LtWorf' Tomaselli
f7f51b3413 Make mypy happy 2020-08-12 15:26:56 +02:00
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