summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-06-01 12:18:43 -0700
committerCarl Worth <cworth@cworth.org>2010-06-01 12:18:43 -0700
commit2571415d1a7eec72db33cd521ca48fe755c43f9c (patch)
tree7eac576396e73cd06dcd8d0f7abe102e0b7f4821 /main
parenta771a40e2257657cbdae0eb97a7bb8733db76b91 (diff)
Implement comment handling in the lexer (with test).
We support both single-line (//) and multi-line (/* ... */) comments and add a test for this, (trying to stress the rules just a bit by embedding one comment delimiter into a comment delimited with the other style, etc.). To keep the test suite passing we do now discard any output lines from glcpp that consist only of spacing, (in addition to blank lines as previously). We also discard any initial whitespace from gcc output. In neither case should the absence or presence of this whitespace affect correctness.
Diffstat (limited to 'main')
0 files changed, 0 insertions, 0 deletions