diff options
author | Keith Packard <keithp@keithp.com> | 2018-01-03 14:53:48 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-01-03 14:53:48 -0800 |
commit | fccb5105b79d5b9e2ed052ce5459028015c01741 (patch) | |
tree | 657941b0abca3b3d6325ae27bff220a25e671c66 /src/scheme/ao_scheme_read.h | |
parent | fc63968f90e3fab12e63d973a4ee7f16d80d765f (diff) |
altos/scheme: Add support for hex, octal and binary constants
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/ao_scheme_read.h')
-rw-r--r-- | src/scheme/ao_scheme_read.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scheme/ao_scheme_read.h b/src/scheme/ao_scheme_read.h index 1aa11a3a..d0b9b36a 100644 --- a/src/scheme/ao_scheme_read.h +++ b/src/scheme/ao_scheme_read.h @@ -65,10 +65,11 @@ # define IGNORE 0x0200 /* \0 - ' ' */ # define BACKSLASH 0x0400 /* \ */ # define STRINGC 0x0800 /* " */ -# define POUND 0x1000 /* # */ +# define HEX_LETTER 0x1000 /* a-f A-F */ # define NOTNAME (STRINGC|COMMENT|ENDOFFILE|WHITE|SPECIAL) # define INTEGER (DIGIT|SIGN) # define NUMBER (INTEGER|FLOATC) +# define HEX_DIGIT (DIGIT|HEX_LETTER) #endif /* _AO_SCHEME_READ_H_ */ |