[honu] add :: as the infix cons operator

This commit is contained in:
Jon Rafkind 2011-08-09 16:09:30 -06:00
parent 0871117538
commit 2f2e1e6a03
3 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@
[honu-+ +] [honu-- -]
[honu-* *] [honu-/ /]
[honu-^ ^]
[honu-cons ::]
[honu-and and]
[honu-or or]
[literal:honu-= =]

View File

@ -91,3 +91,4 @@
(define-binary-operator honu-^ 2 expt)
(define-binary-operator honu-and 0.5 and)
(define-binary-operator honu-or 0.5 or)
(define-binary-operator honu-cons 0.1 cons)

View File

@ -23,7 +23,8 @@
(define-lex-abbrev digit (:/ #\0 #\9))
(define-lex-abbrev identifier-first-character (:or (:/ #\a #\z)
(:/ #\A #\Z)))
(:/ #\A #\Z)
":"))
(define-lex-abbrev identifier-character (:or identifier-first-character
digit))
(define-lex-abbrev identifier (:: identifier-first-character