// source have to figure out how to create revision.h just to get a build\r
// going. However, if it is not updated, it can be a version behind.\r
\r
-#define GLSLANG_REVISION "25511"\r
-#define GLSLANG_DATE "2014/02/24 14:16:19"\r
+#define GLSLANG_REVISION "25512"\r
+#define GLSLANG_DATE "2014/02/24 14:36:08"\r
#include "preprocessor/PpContext.h"
-extern int yyparse(void*);
+extern int yyparse(glslang::TParseContext*);
namespace glslang {
{
currentScanner = &input;
ppContext.setInput(input, versionWillBeError);
- yyparse((void*)this);
+ yyparse(this);
finalErrorCheck();
return numErrors == 0;
#include "../Include/Types.h"
#include "SymbolTable.h"
-#include "glslang_tab.cpp.h"
#include "ParseHelper.h"
+#include "glslang_tab.cpp.h"
#include "ScanContext.h"
#include "Scan.h"
\r
%{\r
\r
-#define YYPARSE_PARAM voidParseContext\r
-#define parseContext (*(TParseContext*)voidParseContext)\r
-#define YYLEX_PARAM parseContext\r
-#define yyerror(msg) parseContext.parserError(msg)\r
+#define parseContext (*pParseContext)\r
+#define yyerror(context, msg) context->parserError(msg)\r
\r
extern int yylex(YYSTYPE*, TParseContext&);\r
\r
%}\r
\r
+%parse-param {glslang::TParseContext* pParseContext}\r
+%lex-param {parseContext}\r
%pure_parser // enable thread safety\r
%expect 1 // One shift reduce conflict because of if | else\r
\r