Implement token pasting of integers.
authorCarl Worth <cworth@cworth.org>
Thu, 27 May 2010 21:36:29 +0000 (14:36 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 27 May 2010 21:38:20 +0000 (14:38 -0700)
commit050e3ded1ea05cfe336dd0cd20212d17d7960c9e
tree55a4e25d0c1c5eb3995e2efd9cbad1c6e7e496ec
parent85b50e840d969c4d9ebcfcc3df1df7a95e07e34e
Implement token pasting of integers.

To do this correctly, we change the lexer to lex integers as string values,
(new token type of INTEGER_STRING), and only convert to integer values when
evaluating an expression value.

Add a new test case for this, (which does pass now).
Makefile
glcpp-lex.l
glcpp-parse.y
tests/059-token-pasting-integer.c [new file with mode: 0644]