implement r6rs hungry escaped EOL
authorAndy Wingo <wingo@pobox.com>
Fri, 21 Jan 2011 07:57:39 +0000 (08:57 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 21 Jan 2011 08:24:32 +0000 (09:24 +0100)
commit684d664e39dad02f7a44f1c70a753a02d4d1856c
treebc4641a6d5d78b431a7ceb1042d1f7bca6549779
parentb04f841d5fa6d3448bb8f976bb27ee3e9a06f83c
implement r6rs hungry escaped EOL

* libguile/private-options.h (SCM_HUNGRY_EOL_ESCAPES_P): New private
  option.
* libguile/read.c: Define SCM_HUNGRY_EOL_ESCAPES_P, defaulting to #f.
  (skip_intraline_whitespace): New helper.
  (scm_read_string): If SCM_HUNGRY_EOL_ESCAPES_P,
  skip_intraline_whitespace after an escaped EOL.

* test-suite/tests/reader.test ("read-options"): Add test.
libguile/private-options.h
libguile/read.c
test-suite/tests/reader.test