/* Source code for RCC-Legacy. Copyright (C) 2026 Richard Qin This file is part of RCC. RCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. RCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with RCC; see the file LICENSE. If not see . */ #pragma once /// @file sysy_type.h /// @brief SysY source language basic types namespace rcc { enum class BType { Int, Float, Void }; inline const char* btype_str(BType t) { switch (t) { case BType::Int: return "int"; case BType::Float: return "float"; case BType::Void: return "void"; } return "?"; } } // namespace rcc