21 Commits

Author SHA1 Message Date
8f5d8adf48 Added pick and select for lists
Pick: (1 2 3 4)?4 or (1 2 3 4)?(3 2)
Select: (1 2 3 4)~2 or (1 2 3 4)~(2 3)
2023-04-26 21:14:21 +03:00
48426fdb0e Adding scala_parser to zparse
Can parse scales as options, for example:
zparse("0..8", scale="17/16 19/16")
2023-03-15 23:08:12 +02:00
bd2a1587d7 Added experimental scala scale parser 2023-03-10 18:41:50 +02:00
ea0e9ae0cd Fixed some bugs and added new tests
New test_multi_03 can be used to test multiple variables at once. Based on new collect function that can be used to collect n variables from parsed Ziffers.
2023-03-05 13:31:52 +02:00
7bf6669cd1 Fixed some issues 2023-03-04 22:05:34 +02:00
f0e1aca247 Major refactoring
Added more items to shorter repeat syntax: 124:3 A=(1 2) A:4

Prefixes now work for more items: q..r qs(1 2 3)

Duration support for list operations: (q1 e3)+(1 4 3 5)
2023-02-25 23:47:28 +02:00
77cf10c95c Added lru_cache and range support for operations 2023-02-22 15:47:07 +02:00
0816ac65db Improvements in packaging.
The ziffers.lark file is not included in the installed package. This was
preventing users from importing the ziffers package from elsewhere.
2023-02-16 07:39:51 +01:00
e08c172f68 Fixed bug with empty options 2023-02-12 01:24:43 +02:00
707e700e37 mvp random generator & list operation evaluator 2023-02-12 00:21:21 +02:00
4bcdb2568a Added note parsing 2023-02-07 22:26:20 +02:00
1c4dfb99a0 Pylinting 2023-02-07 17:48:11 +02:00
5836a43a80 First tests for the iterator 2023-02-06 19:53:26 +02:00
9a4e73c842 make global variables obvious 2023-02-05 16:27:44 +01:00
3d7fe73569 run black on codebase 2023-02-05 16:22:01 +01:00
63b292a7bd Added list operations 2023-02-03 01:02:37 +02:00
3add48c938 Added more rules and tests 2023-02-01 21:15:09 +02:00
c85d4de431 Correcting some imports. By doing so, I have also broken the __main__.py
that was living in parser.py but repl.py is now usable :) The old tests
should probably be moved in the tests folder.
2023-01-31 23:03:35 +01:00
1acddb069f Trying out larl parser 2023-01-31 23:00:31 +02:00
df3c6d007a I don't get it 2022-12-03 03:32:47 +01:00
b2ea4e16dd Initialise 2022-12-03 01:44:04 +01:00