summaryrefslogtreecommitdiff
path: root/glcpp-parse.y
AgeCommit message (Expand)AuthorFilesLines
2010-05-28Perform macro by replacing tokens in original list.take-2Carl Worth1-99/+179
2010-05-28Simplify calling conventions of functions under expand_token_list_onto.Carl Worth1-85/+74
2010-05-28Revert "Add support for an object-to-function chain with the parens in the co...Carl Worth1-49/+16
2010-05-27Implement token pasting of integers.Carl Worth1-10/+22
2010-05-27Add placeholder tokens to support pasting with empty arguments.Carl Worth1-6/+30
2010-05-27Provide support for empty arguments in macro invocations.Carl Worth1-9/+11
2010-05-27Make two list-processing functions do nothing with an empty list.Carl Worth1-1/+4
2010-05-27Avoid treating an expanded comma as an argument separator.Carl Worth1-2/+16
2010-05-26Add support (and test) for an object-to-function chain with the parens in the...Carl Worth1-16/+49
2010-05-26Treat newlines as space when invoking a function-like macro invocation.Carl Worth1-2/+59
2010-05-26All macro lookups should be of type macro_t, not string_list_t.Carl Worth1-4/+4
2010-05-26Implement (and test) support for macro expansion within conditional expressions.Carl Worth1-22/+133
2010-05-26stashCarl Worth1-5/+136
2010-05-26Implement token pasting.Carl Worth1-0/+117
2010-05-26Rename identifier from 'i' to 'node'.Carl Worth1-5/+5
2010-05-26Remove some stale token types.Carl Worth1-3/+0
2010-05-26Prevent unexpanded macros from being expanded again in the future.Carl Worth1-2/+11
2010-05-26Fix a typo in a comment.Carl Worth1-1/+1
2010-05-26Expand macro arguments before performing argument substitution.Carl Worth1-4/+5
2010-05-26Change macro expansion to append onto token lists rather than printing directly.Carl Worth1-73/+120
2010-05-26Check active expansions before expanding a function-like macro invocation.Carl Worth1-5/+5
2010-05-25Avoid getting extra trailing whitespace from macros.Carl Worth1-2/+28
2010-05-25Remove a bunch of old code and give the static treatment to what's left.Carl Worth1-241/+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 Worth1-4/+6
2010-05-25Pass through literal space values from replacement lists.Carl Worth1-5/+5
2010-05-25Implement simplified substitution for function-like macro invocation.Carl Worth1-20/+154
2010-05-25Implement #undef.Carl Worth1-1/+11
2010-05-25Implement expansion of object-like macros.Carl Worth1-18/+110
2010-05-25Make the lexer pass whitespace through (as OTHER tokens) for text lines.Carl Worth1-2/+0
2010-05-25Store parsed tokens as token list and print all text lines.Carl Worth1-55/+172
2010-05-25Delete some trailing whitespace.Carl Worth1-4/+4
2010-05-25Starting over with the C99 grammar for the preprocessor.Carl Worth1-335/+66
2010-05-24Switch to intmax_t (rather than int) for #if expressionsCarl Worth1-1/+3
2010-05-24Implement all operators specified for GLSL #if expressions (with tests).Carl Worth1-7/+90
2010-05-20Implement #if, #else, #elif, and #endif with tests.Carl Worth1-3/+106
2010-05-20Implement (and add test) for token pasting.Carl Worth1-3/+24
2010-05-20Pre-expand macro arguments at time of invocation.Carl Worth1-60/+28
2010-05-20Finish cleaning up whitespace differences.Carl Worth1-0/+9
2010-05-20Avoid printing a space at the beginning of lines in the output.Carl Worth1-7/+11
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-20Add test (and fix) for a function argument of a macro that expands with a comma.Carl Worth1-2/+0
2010-05-20Add support for commas within parenthesized groups in function arguments.Carl Worth1-4/+40
2010-05-20Avoid re-expanding a macro name that has once been rejected from expansion.Carl Worth1-12/+26
2010-05-19Use new token_list_t rather than string_list_t for macro values.Carl Worth1-28/+83
2010-05-19Perform "re lexing" on string list values rathern than on text.Carl Worth1-46/+102
2010-05-19Remove unused NEWLINE token.Carl Worth1-1/+1