Python parser #4

Merged
HEL merged 27 commits from feat/python-parser into main 2026-05-26 08:28:42 +00:00

27 Commits

Author SHA1 Message Date
6524b3591a feat(cli): highlight midas keywords 2026-05-26 10:14:23 +02:00
170101aa37 fix(parser): add call keywords attribute in gen definition 2026-05-26 10:12:59 +02:00
0b3f33d7fe feat(parser): parse python expressions 2026-05-25 23:17:52 +02:00
8a9b4f3989 feat(parser): parse assignments 2026-05-25 22:43:38 +02:00
bbd0e3ae8d feat(cli): update highlighter with new nodes 2026-05-25 22:14:44 +02:00
4d23e8840e feat(parser): adapt AST printer with new nodes 2026-05-25 22:06:18 +02:00
c64d626d1c refactor(parser): remove inheritance from NodeVisitor
remove the parent NodeVisitor class from PythonParser and implement all custom recursive methods instead
2026-05-25 21:42:04 +02:00
ecab1b74a4 feat(parser): add Python AST nodes 2026-05-25 21:39:20 +02:00
0bbdf04621 feat(parser): generate python AST classes
use the generation script to create Python AST node classes, also distinguish between Midas type annotation nodes and statements
2026-05-25 20:53:36 +02:00
939e5af4ce refactor(parser): improve AST class generator
make the generation script more flexible
2026-05-25 20:38:38 +02:00
a735113466 fix(parser): update ast gen script 2026-05-25 12:46:04 +02:00
0e0a1b26f2 feat(cli): add midas highlighter 2026-05-25 12:14:55 +02:00
e94db2181f feat(parser): add location to midas AST nodes 2026-05-25 12:14:14 +02:00
9b59058881 feat(cli): add highlight command 2026-05-22 22:16:05 +02:00
d0c54db33a feat(parser): store locations in parsed nodes 2026-05-22 22:11:44 +02:00
5aedddfabb feat(parser): parse functions in python 2026-05-22 19:32:15 +02:00
8d7c115432 feat(parser): parse type constraints in python 2026-05-22 18:46:06 +02:00
832c350b61 fix: use generic Difference type in example 2026-05-22 17:38:13 +02:00
3d599b3462 feat(cli): add option to run python parser 2026-05-22 17:37:20 +02:00
4f799caaf5 feat(parser): add pretty-printer for python AST 2026-05-22 17:36:44 +02:00
f4d2be3b1b feat(parser): add simple Python parser 2026-05-22 17:36:22 +02:00
7ce2840f03 feat(parser): add AST nodes for python 2026-05-22 17:34:04 +02:00
e2f3cabe15 feat(cli): add compile command to read python AST 2026-05-22 14:06:28 +02:00
5a112332f2 chore: complete pyproject.toml 2026-05-22 11:15:46 +02:00
eb79cf6dc3 feat(cli): add basic CLI entrypoint 2026-05-22 11:09:54 +02:00
8a9bb6ef4e feat: add pyproject.toml 2026-05-22 11:09:24 +02:00
6e0190a378 refactor: move source files in subdirectory 2026-05-22 11:05:47 +02:00