CAP/TPfutures/MiniC-futures/MiniCTypingVisitor.py

18 lines
407 B
Python
Raw Normal View History

2024-12-09 13:00:58 +01:00
# Visitor to *typecheck* MiniC files
from typing import List
from MiniCVisitor import MiniCVisitor
from MiniCParser import MiniCParser
from Lib.Errors import MiniCInternalError, MiniCTypeError
from enum import Enum
# NEW: ADD FutInteger
class BaseType(Enum):
Float, Integer, Boolean, String, FutInteger = range(5)
class MiniCTypingVisitor(MiniCVisitor):
# TODO Add your own typer here
pass