aboutsummaryrefslogtreecommitdiffstats
path: root/glsl_lexer.lpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-03-19 11:12:33 -0700
committerIan Romanick <[email protected]>2010-03-19 11:12:33 -0700
commitb0bb781e1dae3d98b861c1f6cae7fb99efefe2e1 (patch)
treeac9009d4336383f56a81961f8886825e8cab2135 /glsl_lexer.lpp
parente309a6051d1a04ee581f0a47c6c585918fba1096 (diff)
Don't track new type names during pass-1 parsing
This implementation was wrong anyway because it did not respect scoping rules. This will need to be revisited soon. The most likely result is that the grammar is going to need some significant re-work to be able to use a IDENTIFIER in all the places where a TYPE_NAME is currently used.
Diffstat (limited to 'glsl_lexer.lpp')
-rw-r--r--glsl_lexer.lpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp
index 9c7e3064e4a..8f3f1211d5d 100644
--- a/glsl_lexer.lpp
+++ b/glsl_lexer.lpp
@@ -24,7 +24,6 @@
#include "ast.h"
#include "glsl_parser_extras.h"
#include "glsl_parser.h"
-#include "symbol_table.h"
#define YY_USER_ACTION \
do { \
@@ -245,13 +244,7 @@ precision return PRECISION;
[_a-zA-Z][_a-zA-Z0-9]* {
yylval->identifier = strdup(yytext);
-
- if (_mesa_symbol_table_find_symbol(yyextra->symbols,
- 0,
- yylval->identifier))
- return TYPE_NAME;
- else
- return IDENTIFIER;
+ return IDENTIFIER;
}
. { return yytext[0]; }