summaryrefslogtreecommitdiff
path: root/glcpp/glcpp-lex.l
AgeCommit message (Collapse)Author
2010-06-23glcpp: Fix "dangerous trailing context" warning.Kenneth Graunke
Flex couldn't be sure whether "def" and "ndef" were part of the #ifdef and #ifndef patterns or the trailing context of the #if pattern.
2010-06-23glcpp: Recognize plain "//" as a comment.Kenneth Graunke
Found in glsl-orangebook-ch06-bump.(frag|vert). This was resulting in the comments getting passed through to the main compiler's lexer.
2010-06-21glcpp: Don't include newlines as part of #version-passthrough.Kenneth Graunke
Fixes glcpp/tests/064-version.c.
2010-06-21glcpp: Fix line and column numbering.Kenneth Graunke
Lines were off by one, and column numbering was completely daft.
2010-06-21glcpp: Set line locations in the lexer.Kenneth Graunke
2010-06-21glcpp: Add plumbing to support line locations.Kenneth Graunke
2010-06-21glcpp: Actually support #ifdef and #ifndef.Kenneth Graunke
Strangely, the lexer never created these tokens, even though the parser already had code to handle them.
2010-06-21glcpp: Build a reentrant parser.Kenneth Graunke
2010-06-21glcpp: Handle missing newline at EOF.Kenneth Graunke
Fixes CorrectFuncOverload.vert.
2010-06-21glcpp: Pass #version, #extension, and #pragma directives through unchanged.Kenneth Graunke
Let the main compiler's lexer/parser handle them.
2010-06-21glcpp: Add support for lexing from a string.Kenneth Graunke
The standalone binary still reads from stdin, however.
2010-06-21Specify %option prefix="glcpp_" in the source code, not the Makefile.Kenneth Graunke
2010-06-21Merge Carl's preprocessor into the glcpp subdirectory.Kenneth Graunke