Files
Giacomo Vercesi d404fee38f Unify TTG CLI tool for generation
Merge all the command-line scripts for generating tuple-tree
implementations into a single `tuple-tree-generate.py` script. Move all
the other files a directory down.
2025-06-25 15:40:13 +02:00

13 lines
374 B
Python

#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
from .definition import Definition
class SequenceDefinition(Definition):
def __init__(self, sequence_type, element_type: Definition, doc=None):
super().__init__(sequence_type == "std::vector")
self.sequence_type = sequence_type
self.element_type = element_type