Trying out larl parser

This commit is contained in:
2023-01-31 23:00:31 +02:00
parent df3c6d007a
commit 1acddb069f
19 changed files with 242 additions and 96 deletions

2
ziffers/common.py Normal file
View File

@ -0,0 +1,2 @@
def flatten(arr) -> list:
return flatten(arr[0]) + (flatten(arr[1:]) if len(arr) > 1 else []) if type(arr) is list else [arr]