summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2010-05-26Defer test 26 until much later (to test 55).Carl Worth1-0/+0
2010-05-25Avoid getting extra trailing whitespace from macros.Carl Worth2-2/+29
2010-05-25Remove a bunch of old code and give the static treatment to what's left.Carl Worth2-248/+21
2010-05-25Avoid swallowing initial left parenthesis from nested macro invocation.Carl Worth1-2/+6
2010-05-25Ignore separating whitespace at the beginning of a macro argument.Carl Worth1-9/+11
2010-05-25Implement substitution of function parameters in macro calls.Carl Worth1-8/+57
2010-05-25Collapse multiple spaces in input down to a single space.Carl Worth3-6/+7
2010-05-25Add a test #0 to ensure that we don't do any inadvertent token pasting.Carl Worth1-0/+1
2010-05-25Pass through literal space values from replacement lists.Carl Worth3-71/+25
2010-05-25Implement simplified substitution for function-like macro invocation.Carl Worth3-21/+168
2010-05-25Implement #undef.Carl Worth1-1/+11
2010-05-25Implement expansion of object-like macros.Carl Worth3-22/+112
2010-05-25Make the lexer pass whitespace through (as OTHER tokens) for text lines.Carl Worth3-17/+59
2010-05-25Store parsed tokens as token list and print all text lines.Carl Worth3-64/+195
2010-05-25Delete some trailing whitespace.Carl Worth1-4/+4
2010-05-25Add xtalloc_reference.Carl Worth2-0/+21
2010-05-25Starting over with the C99 grammar for the preprocessor.Carl Worth3-505/+98
2010-05-24Add test for '/', '<<', and '>>' in #if expressions.Carl Worth1-0/+16
2010-05-24Add test of bitwise operators and octal/hexadecimal literals.Carl Worth1-0/+20
2010-05-24Add support for octal and hexadecimal integer literals.Carl Worth1-3/+16
2010-05-24Switch to intmax_t (rather than int) for #if expressionsCarl Worth2-1/+5
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 Worth5-7/+195
2010-05-20Implement #if, #else, #elif, and #endif with tests.Carl Worth13-4/+221
2010-05-20Implement (and add test) for token pasting.Carl Worth1-3/+24
2010-05-20Pre-expand macro arguments at time of invocation.Carl Worth3-70/+28
2010-05-20Add xtalloc_asprintfCarl Worth2-0/+21
2010-05-20Finish cleaning up whitespace differences.Carl Worth3-6/+11
2010-05-20Avoid printing a space at the beginning of lines in the output.Carl Worth3-7/+17
2010-05-20Fix bug of consuming excess whitespace.Carl Worth1-18/+53
2010-05-20Remove unused function _print_string_listCarl Worth1-18/+0
2010-05-20Remove "unnecessary" whitespace from some tests.Carl Worth7-10/+10
2010-05-20Stop ignoring whitespace while testing.Carl Worth1-1/+1
2010-05-20Add test (and fix) for a function argument of a macro that expands with a comma.Carl Worth2-2/+3
2010-05-20Add support for commas within parenthesized groups in function arguments.Carl Worth2-4/+42
2010-05-20Avoid re-expanding a macro name that has once been rejected from expansion.Carl Worth4-15/+44
2010-05-19Use new token_list_t rather than string_list_t for macro values.Carl Worth2-31/+97
2010-05-19Perform "re lexing" on string list values rathern than on text.Carl Worth3-133/+124
2010-05-19Remove unused NEWLINE token.Carl Worth1-1/+1
2010-05-19Remove unneeded YYLEX_PARAM define.Carl Worth1-2/+0
2010-05-19Rename yylex to glcpp_parser_lex and give it a glcpp_parser_t* argument.Carl Worth1-4/+6
2010-05-19Add a wrapper function around the lexer.Carl Worth3-6/+15
2010-05-19Like previous fix, but for object-like macros (and add a test).Carl Worth2-3/+4
2010-05-19Fix bug as in previous fix, but with multi-token argument.Carl Worth2-12/+12
2010-05-19Fix bug (and test) for an invocation using macro name as a non-macro argumentCarl Worth2-1/+11
2010-05-19Fix bug (and add tests) for a function-like macro defined as itself.Carl Worth3-33/+30
2010-05-18Rewrite macro handling to support function-like macro invocation in macro valuesCarl Worth4-266/+338
2010-05-18Add several tests where the defined value of a macro is (or looks like) a macroCarl Worth5-0/+17
2010-05-17Fix (and add test for) function-like macro invocation with newlines.Carl Worth4-22/+69
2010-05-17Expect 1 shift/reduce conflict.Carl Worth1-0/+8