read-extended-symbol handles backslash better, including r6rs hex escapes
authorAndy Wingo <wingo@pobox.com>
Mon, 11 Apr 2011 10:48:06 +0000 (12:48 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 11 Apr 2011 10:48:06 +0000 (12:48 +0200)
commitd9527cfafdad1046770437a7a59d3745e7243c67
treee36c0591b263fdefde42e0811f2f29a88d02f7eb
parent15671c6e7fd86160b415b5373b2c1539e23556f3
read-extended-symbol handles backslash better, including r6rs hex escapes

* libguile/read.c (scm_read_extended_symbol): Interpret '\' as an escape
  character.  Due to some historical oddities we have to support '\'
  before any character, but since we never emitted '\' in front of
  "normal" characters like 'x' we can interpret "\x..;" to be an R6RS
  hex escape.

* test-suite/tests/reader.test ("#{}#"): Add tests.
libguile/read.c
test-suite/tests/reader.test