Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * ParserState state implementation. 11 : : */ 12 : : 13 : : #include "parser/parser_utils.h" 14 : : 15 : : #include <iostream> 16 : : 17 : : namespace cvc5 { 18 : : namespace parser { 19 : : 20 : 0 : std::ostream& operator<<(std::ostream& out, DeclarationCheck check) 21 : : { 22 [ - - ][ - - ]: 0 : switch (check) 23 : : { 24 : 0 : case CHECK_NONE: return out << "CHECK_NONE"; 25 : 0 : case CHECK_DECLARED: return out << "CHECK_DECLARED"; 26 : 0 : case CHECK_UNDECLARED: return out << "CHECK_UNDECLARED"; 27 : 0 : default: return out << "DeclarationCheck!UNKNOWN"; 28 : : } 29 : : } 30 : : 31 : 0 : std::ostream& operator<<(std::ostream& out, SymbolType type) 32 : : { 33 [ - - ][ - - ]: 0 : switch (type) 34 : : { 35 : 0 : case SYM_VARIABLE: return out << "SYM_VARIABLE"; 36 : 0 : case SYM_SORT: return out << "SYM_SORT"; 37 : 0 : case SYM_VERBATIM: return out << "SYM_VERBATIM"; 38 : 0 : default: return out << "SymbolType!UNKNOWN"; 39 : : } 40 : : } 41 : : 42 : : } // namespace parser 43 : : } // namespace cvc5