Files
langkit/testsuite/tests/python_api/node_negative_index/test.py
Pierre-Marie de Rodat 383670d486 Extend support for LKT grammars, transition tests
TN: RA22-015
2020-02-27 13:43:20 +01:00

23 lines
400 B
Python

"""
Test the handling of negative indexes in the Python binding of AST nodes child
getters.
"""
from __future__ import absolute_import, division, print_function
from langkit.dsl import ASTNode
from utils import build_and_run
class FooNode(ASTNode):
pass
class Name(FooNode):
token_node = True
build_and_run(lkt_file='expected_concrete_syntax.lkt', py_script='main.py')
print('Done')