From 7002737e10d52a6f2862ecaf6270c28eb0c10646 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Mon, 17 Aug 2020 09:12:56 +0300 Subject: [PATCH] Add number prefixes to hash-syntax --- hash-syntax.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hash-syntax.scm b/hash-syntax.scm index 3bcd781..3ff140c 100644 --- a/hash-syntax.scm +++ b/hash-syntax.scm @@ -52,14 +52,32 @@ (id "#|") (description "Block comment until |# [R6RS, R7RS, SRFI 30]") +(id "#b") +(description "Binary integer [R2RS+]") + +(id "#d") +(description "Decimal number [R2RS+]") + +(id "#e") +(description "Exact number [R2RS+]") + (id "#f") (description "Boolean false [R3RS+]") (id "#false") (description "Boolean false [R7RS]") +(id "#i") +(description "Inexact number [R2RS+]") + +(id "#o") +(description "Octal integer [R2RS+]") + (id "#t") (description "Boolean true [R3RS+]") (id "#true") (description "Boolean true [R7RS]") + +(id "#x") +(description "Hexadecimal integer [R2RS+]")