13 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
3dd788055d Sort imported entitities in all Python scripts
TN: S425-011
2019-04-25 14:39:56 +02:00
Romain Beguet
0dd1f1bbd6 S418-018: Refactor add_to_env.
- "env_assoc"s now take themselves the dest_env and the metadata info.
- Add add_to_env_kv and new_env_assoc to simplify common usage.
2019-04-25 11:51:59 +02:00
Romain Beguet
42a7dacb91 S121-011: Revise enum node definition mechanism.
Instead of using Python's inheritance mechanism to define enum nodes,
the new mechanism requires adding enum_node = True to the class' body.
Inheritance can now be used to make the enum node derive from any
subclass of ASTNode instead ASTNode itself.
2019-02-07 12:54:10 +01:00
Pierre-Marie de Rodat
cc63ebf2c0 contrib/python: make BinOp abstract instead of synthetic
TN: S121-029
2019-01-25 17:48:42 +01:00
Pierre-Marie de Rodat
a50ba54b6d contrib/python: fix a compilation warning
TN: R807-033
2018-08-16 12:16:02 +02:00
Pierre-Marie de Rodat
86c9702c5b contrib/python: remove obsolete List() keyword argument
TN: R807-033
2018-08-16 12:16:02 +02:00
Raphael Amiard
d70b094f44 Simplify python tree #11 no-tn-check
Change-Id: I8ad7b67d65a71fdf0348e29746dbf05a11c7b62e
2018-02-06 17:04:53 +01:00
Raphael Amiard
eff6f179c2 Update python engine #11 no-tn-check
Change-Id: I0789d223ad0439ffbcd0425a68c11115d8fecbc2
2018-02-06 17:04:53 +01:00
Pierre-Marie de Rodat
b06154a326 contrib/python: update parser to use token nodes only
TN: R125-040
2018-01-29 12:09:56 +01:00
Pierre-Marie de Rodat
abb941feec Parsers: keep parsed tokens by default
Also simplify token parsers throughout all the testsuite.

TN: R125-040
2018-01-29 12:09:07 +01:00
Pierre-Marie de Rodat
37926039ed contrib/python: minor refactoring
(no-tn-check)
2018-01-29 12:09:07 +01:00
Pierre-Marie de Rodat
2098fe35e9 contrib/python: turn plain boolean into EnumNode qualifiers
TN: R125-011
2018-01-25 17:57:08 +01:00
Raphael Amiard
026ae0310e Add python parser in contrib/ - #11 no-tn-check
Change-Id: I7d46014caccbf45d4a23a6b46b90193d5139dcfc
2018-01-21 14:51:15 +01:00