From 9a0f3d96e5c38ee690a46bdc8990bf7bf448880e Mon Sep 17 00:00:00 2001 From: Windymelt Date: Sun, 2 Dec 2018 19:24:36 +0900 Subject: [PATCH] Fixed example usage `:dispatch-macro-character` and `:macro-character` does not work, it must be `:dispatch-macro-char` and `:macro-char`. --- README.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index c7169b7..399a57c 100644 --- a/README.markdown +++ b/README.markdown @@ -38,11 +38,11 @@ Usage `defsyntax` defines a new syntax. `name` is a symbol and `options` is a list of option. -If option formed `(:macro-character char fn &optional +If option formed `(:macro-char char fn &optional non-terminating-p)`, the syntax engine will call `set-macro-character` with the arguments when enabling the syntax. -If option formed `(:dispatch-macro-character disp-ch sub-ch fn)`, the +If option formed `(:dispatch-macro-char disp-ch sub-ch fn)`, the syntax engine will call `set-dispatch-macro-character` with the arguments when enabling the syntax. @@ -50,12 +50,12 @@ Here is an example: ;; Define cl-interpol syntax (defsyntax interpol-syntax - (:dispatch-macro-character #\# #\? #'cl-interpol::interpol-reader)) + (:dispatch-macro-char #\# #\? #'cl-interpol::interpol-reader)) This code is equivalent to: (defvar interpol-syntax - `((:dispatch-macro-character #\# #\? ,#'cl-interpol::interpol-reader))) + `((:dispatch-macro-char #\# #\? ,#'cl-interpol::interpol-reader))) If you don't want to use `defsyntax` in some reasons, use this code instead.