mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
d404fee38f
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.
13 lines
374 B
Python
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
|