Pierre-Marie de Rodat
850f0e92f4
Fix coding style issues in testcases
...
TN: SC05-019
2019-12-18 17:11:51 +01:00
Pierre-Marie de Rodat
6119d49b15
Python API: accept unicode source buffers in get_from_buffer/reparse
...
TN: SC05-019
2019-12-18 15:28:19 +01:00
Pierre-Marie de Rodat
3260fb63e1
Add Python3 compatibility for the Python bindings to generated libraries
...
TN: SB13-026
2019-12-05 14:47:36 +01:00
Pierre-Marie de Rodat
d0bfb10cda
Python API: remove the 'u' prefix from Token.__repr__'s result
...
This is not only more user friendly, but also removes a discrepancy
between Python2 and Python3.
TN: SB13-026
2019-12-05 14:47:36 +01:00
Pierre-Marie de Rodat
e3ad650821
Python API: use type full name in error message
...
This makes error messages that are propagated to users in case of type
mismatch clearer.
This change was originally motivated by the discrepancy between Python2
and Python3:
# Python2
>>> int
<type 'int'>
# Python3
>>> int
<class 'int'>
Using the type full name avoids relying on a particular representation
for the types.
TN: SB13-026
2019-12-05 14:47:36 +01:00
Pierre-Marie de Rodat
a5bf08a3a7
stylechecks: enforce two empty lines after imports
...
TN: S819-013
2019-08-20 14:34:45 +02:00
Pierre-Marie de Rodat
493c7a20f9
python_api/tokens: enhance to test AnalysisUnit.text
...
TN: S425-033
2019-04-26 16:33:48 +02:00
Pierre-Marie de Rodat
6f6cd1acea
python_api/tokens: repurpose test for general Token binding testing
...
TN: S425-033
2019-04-26 16:33:48 +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
Raphaël AMIARD
166e285d7e
P506-012: Add file name to node short_image
2019-03-15 10:34:54 +01:00
Pierre-Marie de Rodat
ecc00adbcd
python_api/import_argcount: new testcase
...
TN: S306-037
2019-03-12 12:53:12 +01: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
Romain Beguet
51b1c6a42b
S129-006: Add grammar rule param to get_analysis_unit_from_*.
2019-01-29 15:54:19 +01:00
Pierre-Marie de Rodat
99e4111bad
Testsuite: rename directories to replace "-" with "_"
2018-09-28 15:02:58 +02:00