mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
22 lines
439 B
Python
22 lines
439 B
Python
"""
|
|
Test that the various wrappers that the Python binding instantiates (contexts,
|
|
units, nodes) are re-used whenever we want to wrap unique C values.
|
|
"""
|
|
|
|
from langkit.dsl import ASTNode, Field
|
|
|
|
from utils import build_and_run
|
|
|
|
|
|
class FooNode(ASTNode):
|
|
pass
|
|
|
|
|
|
class Example(FooNode):
|
|
examples = Field()
|
|
|
|
|
|
build_and_run(lkt_file='expected_concrete_syntax.lkt', py_script='main.py',
|
|
types_from_lkt=True)
|
|
print('Done')
|