summaryrefslogtreecommitdiff
path: root/glcpp-lex.l
AgeCommit message (Expand)AuthorFilesLines
2010-05-26Fix lexing of "defined" as an operator, not an identifier.Carl Worth1-6/+5
2010-05-26stashCarl Worth1-0/+40
2010-05-25Collapse multiple spaces in input down to a single space.Carl Worth1-1/+0
2010-05-25Pass through literal space values from replacement lists.Carl Worth1-66/+19
2010-05-25Implement simplified substitution for function-like macro invocation.Carl Worth1-1/+13
2010-05-25Make the lexer pass whitespace through (as OTHER tokens) for text lines.Carl Worth1-14/+58
2010-05-25Starting over with the C99 grammar for the preprocessor.Carl Worth1-169/+28
2010-05-24Add support for octal and hexadecimal integer literals.Carl Worth1-3/+16
2010-05-24Add the '~' operator to the lexer.Carl Worth1-1/+1
2010-05-24Implement all operators specified for GLSL #if expressions (with tests).Carl Worth1-0/+45
2010-05-20Implement #if, #else, #elif, and #endif with tests.Carl Worth1-0/+32
2010-05-20Pre-expand macro arguments at time of invocation.Carl Worth1-8/+0
2010-05-20Finish cleaning up whitespace differences.Carl Worth1-6/+1
2010-05-20Avoid printing a space at the beginning of lines in the output.Carl Worth1-0/+5
2010-05-20Avoid re-expanding a macro name that has once been rejected from expansion.Carl Worth1-3/+9
2010-05-19Perform "re lexing" on string list values rathern than on text.Carl Worth1-55/+16
2010-05-18Rewrite macro handling to support function-like macro invocation in macro valuesCarl Worth1-44/+102
2010-05-17Fix (and add test for) function-like macro invocation with newlines.Carl Worth1-20/+62
2010-05-14Fix two whitespace bugs in the lexer.Carl Worth1-2/+2
2010-05-14Don't return SPACE tokens unless strictly needed.Carl Worth1-3/+26
2010-05-14Make the lexer return SPACE tokens unconditionally.Carl Worth1-26/+3
2010-05-14Fix parsing of object-like macro with a definition that begins with '('.Carl Worth1-5/+36
2010-05-13Add support for the structure of function-like macros.Carl Worth1-5/+15
2010-05-13Make the lexer distinguish between identifiers and defined macros.Carl Worth1-1/+4
2010-05-12Simplify lexer significantly (remove all stateful lexing).Carl Worth1-32/+9
2010-05-12Add support for the #undef macro.Carl Worth1-1/+18
2010-05-12Convert lexer to talloc and add xtalloc wrappers.Carl Worth1-3/+4
2010-05-12Fix defines involving both literals and other defined macros.Carl Worth1-8/+26
2010-05-10Implment #defineCarl Worth1-4/+19
2010-05-10Add some compiler warnings and corresponding fixes.Carl Worth1-0/+1
2010-05-10Make the lexer reentrant (to avoid "still reachable" memory).Carl Worth1-1/+1
2010-05-10Add the tiniest shell of a flex/bison-based parser.Carl Worth1-0/+41