diff options
Diffstat (limited to 'compilador/astree/unit.py')
-rw-r--r-- | compilador/astree/unit.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compilador/astree/unit.py b/compilador/astree/unit.py new file mode 100644 index 0000000..8ffdf19 --- /dev/null +++ b/compilador/astree/unit.py @@ -0,0 +1,9 @@ +from dataclasses import dataclass +from typing import List + +from astree.decl import Decl + +# A single compilation unit, representing all of the members of a namespace. +@dataclass +class Unit: + decls: List[Decl] |