diff options
Diffstat (limited to 'src/parser/smt1/smt1_input.h')
-rw-r--r-- | src/parser/smt1/smt1_input.h | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/src/parser/smt1/smt1_input.h b/src/parser/smt1/smt1_input.h deleted file mode 100644 index fcdc63ee2..000000000 --- a/src/parser/smt1/smt1_input.h +++ /dev/null @@ -1,85 +0,0 @@ -/********************* */ -/*! \file smt1_input.h - ** \verbatim - ** Top contributors (to current version): - ** Morgan Deters, Christopher L. Conway, Tim King - ** This file is part of the CVC4 project. - ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS - ** in the top-level source directory) and their institutional affiliations. - ** All rights reserved. See the file COPYING in the top-level source - ** directory for licensing information.\endverbatim - ** - ** \brief [[ Add file-specific comments here ]]. - ** - ** [[ Add file-specific comments here ]] - **/ - -#include "cvc4parser_private.h" - -#ifndef CVC4__PARSER__SMT1_INPUT_H -#define CVC4__PARSER__SMT1_INPUT_H - -#include "parser/antlr_input.h" -#include "parser/smt1/Smt1Lexer.h" -#include "parser/smt1/Smt1Parser.h" - -// extern void Smt1ParserSetAntlrParser(CVC4::parser::AntlrParser* newAntlrParser); - -namespace CVC4 { - -class Command; -class Expr; -class ExprManager; - -namespace parser { - -class Smt1Input : public AntlrInput { - - /** The ANTLR3 SMT lexer for the input. */ - pSmt1Lexer d_pSmt1Lexer; - - /** The ANTLR3 CVC parser for the input. */ - pSmt1Parser d_pSmt1Parser; - -public: - - /** - * Create an input. - * - * @param inputStream the input stream to use - */ - Smt1Input(AntlrInputStream& inputStream); - - /** Destructor. Frees the lexer and the parser. */ - virtual ~Smt1Input(); - - protected: - /** - * Parse a command from the input. Returns <code>NULL</code> if - * there is no command there to parse. - * - * @throws ParserException if an error is encountered during parsing. - */ - Command* parseCommand() override; - - /** - * Parse an expression from the input. Returns a null - * <code>Expr</code> if there is no expression there to parse. - * - * @throws ParserException if an error is encountered during parsing. - */ - Expr parseExpr() override; - - private: - /** - * Initialize the class. Called from the constructors once the input - * stream is initialized. - */ - void init(); - -};/* class Smt1Input */ - -}/* CVC4::parser namespace */ -}/* CVC4 namespace */ - -#endif /* CVC4__PARSER__SMT1_INPUT_H */ |