1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/compiler/preprocessor/ExpressionParser.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +// 1.5 +// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. 1.6 +// Use of this source code is governed by a BSD-style license that can be 1.7 +// found in the LICENSE file. 1.8 +// 1.9 + 1.10 +#ifndef COMPILER_PREPROCESSOR_EXPRESSION_PARSER_H_ 1.11 +#define COMPILER_PREPROCESSOR_EXPRESSION_PARSER_H_ 1.12 + 1.13 +#include "pp_utils.h" 1.14 + 1.15 +namespace pp 1.16 +{ 1.17 + 1.18 +class Diagnostics; 1.19 +class Lexer; 1.20 +struct Token; 1.21 + 1.22 +class ExpressionParser 1.23 +{ 1.24 + public: 1.25 + ExpressionParser(Lexer* lexer, Diagnostics* diagnostics); 1.26 + 1.27 + bool parse(Token* token, int* result); 1.28 + 1.29 + private: 1.30 + PP_DISALLOW_COPY_AND_ASSIGN(ExpressionParser); 1.31 + 1.32 + Lexer* mLexer; 1.33 + Diagnostics* mDiagnostics; 1.34 +}; 1.35 + 1.36 +} // namespace pp 1.37 +#endif // COMPILER_PREPROCESSOR_EXPRESSION_PARSER_H_