From cb0c0a6144346521d6cf3b02703ba15f67b9b4f3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 25 Feb 2012 15:51:43 -0800 Subject: * parser.l (num_esc): Skip octal indicator 'o' if present. This is needed for character constants. (CHRLIT): Fix broken hex constants, being treated as octal. * txr.1: Document octal character constants. --- txr.1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index 7adeee9b..275a6e8a 100644 --- a/txr.1 +++ b/txr.1 @@ -1033,9 +1033,10 @@ useful for labeling information and situations. Character literals are introduced by the #\e syntax, which is either followed by a character name, the letter x followed by hex digits, -or a single character. Valid character names are: nul, alarm, backspace, tab, -linefeed, newline, vtab, page, return, esc, space. This convention -for character literals is similar to that of the Scheme language. +the letter o followed by octal digits, or a single character. Valid character +names are: nul, alarm, backspace, tab, linefeed, newline, vtab, page, return, +esc, space. This convention for character literals is similar to that of the +Scheme language. .SS String Literals -- cgit v1.2.3