Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ansi-test
ansi-test
Commits
5821da4d
Commit
5821da4d
authored
Aug 21, 2018
by
Marius Gerbershagen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sharpsign colon reader: add test for package prefix in uninterned symbol
parent
7183010a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
reader/syntax.lsp
reader/syntax.lsp
+12
-1
No files found.
reader/syntax.lsp
View file @
5821da4d
...
...
@@ -419,7 +419,18 @@
(def-syntax-unintern-test syntax.sharp-colon.5 "NIL")
(def-syntax-unintern-test syntax.sharp-colon.6 "T")
(def-syntax-unintern-test syntax.sharp-colon.7 ".")
;;; Uninterned symbols must not contain a package prefix (see CLHS 2.4.8.5)
(def-syntax-test syntax.sharp-colon.error.1
(signals-error (read-from-string "#:a:b") reader-error)
t)
(def-syntax-test syntax.sharp-colon.8
(let ((s (read-from-string "#:|a:b|")))
(values (symbol-package s) (symbol-name s)))
nil "a:b")
(def-syntax-test syntax.sharp-colon.9
(let ((s (read-from-string "#:a\\:b")))
(values (symbol-package s) (symbol-name s)))
nil "A:B")
;;; Tests of #.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment