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

19 lines
473 B
Python

#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
from typing import Optional, Set
class Definition:
def __init__(self, is_scalar: bool, name: Optional[str] = None):
self.name = name
# Names of types on which this definition depends on.
# Not necessarily names defined by the user
self.dependencies: Set[str] = set()
self.is_scalar = is_scalar
def __hash__(self):
return id(self)