Raphaël AMIARD
f86e493ba8
RA22-015: dsl_unparse - emit top level extract with parens
2020-02-06 17:37:15 +01:00
Raphaël AMIARD
34d63f324f
RA22-015: Fix unparsing of isa operator
...
is_a -> isa (purely cosmetic)
Put parens if there are multiple types on the RHS
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
9e91b95f81
RA22-015: unparse "!" as an operator in casts
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
759ec7ab77
RA22-015: Emit correct names for user defined list types
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
1ea39a364d
RA22-015: Rename null -> null_node to avoid conflicts
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
414892b716
RA22-015: change enum node syntax in unparser
...
Now:
@enum_node(A, B, C) class MyEnumNode {
}
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
faf6dd126c
RA22-015: Dont emit generic list types
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
3ae11cdbe0
RA22-015: Use annotations for enum & qualifier node classes
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
524ce95fed
RA22-015: Properly parse comments and doc comments
...
Properly unparse doc comments
2020-02-06 17:03:04 +01:00
Raphaël AMIARD
5ae33bf3ba
RA22-015: Use "@export" rather than "public"
...
As a syntax to make entities visible in the public APIs. That will allow
us to keep "public" & "private" for internal DSL visibility concerns.
2020-01-14 16:58:05 +01:00
Raphaël AMIARD
339ac82910
RA22-015: use annotation syntax for parse fields
2020-01-14 16:58:05 +01:00
Raphaël AMIARD
375b5d2a8e
RA22-015: switch to braces
...
We want to have a block based functional language and braces are a
common choice for that.
2020-01-14 16:58:05 +01:00
Raphaël AMIARD
b809553bb8
RA22-015: improve blank lines generation
2020-01-14 16:58:05 +01:00
Raphaël AMIARD
fd75a5a6c6
RA22-015: Don't unparse generic list types
2020-01-14 16:58:05 +01:00
Raphaël AMIARD
ab381dca1e
RA22-015: test CS unparsing results
2020-01-09 16:23:29 +01:00
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