michael@0: // michael@0: // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #ifndef COMPILER_PREPROCESSOR_EXPRESSION_PARSER_H_ michael@0: #define COMPILER_PREPROCESSOR_EXPRESSION_PARSER_H_ michael@0: michael@0: #include "pp_utils.h" michael@0: michael@0: namespace pp michael@0: { michael@0: michael@0: class Diagnostics; michael@0: class Lexer; michael@0: struct Token; michael@0: michael@0: class ExpressionParser michael@0: { michael@0: public: michael@0: ExpressionParser(Lexer* lexer, Diagnostics* diagnostics); michael@0: michael@0: bool parse(Token* token, int* result); michael@0: michael@0: private: michael@0: PP_DISALLOW_COPY_AND_ASSIGN(ExpressionParser); michael@0: michael@0: Lexer* mLexer; michael@0: Diagnostics* mDiagnostics; michael@0: }; michael@0: michael@0: } // namespace pp michael@0: #endif // COMPILER_PREPROCESSOR_EXPRESSION_PARSER_H_