Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing symbol escape characters #59

Open
jcubic opened this issue Apr 13, 2024 · 0 comments
Open

Testing symbol escape characters #59

jcubic opened this issue Apr 13, 2024 · 0 comments

Comments

@jcubic
Copy link
Contributor

jcubic commented Apr 13, 2024

This is an extension of Extending Empty symbol concatenated survey
and Reader: Vertical Bar Concatenated With Number surveys

I was playing with handling different ways of escaping symbols. I came up with this test:

(write (map symbol->string '(|name| name|| name|\|| name|\\|xxx name|\\\\| name|\\|)))
(newline)
  • Kawa ("name" "name" "name|" "name\\xxx" "name\\\\" "name\\")
  • Gauche ("name" "name" "" "name" "|" "name" "\\" "xxx" "name" "\\\\" "name" "\\")
  • LIPS (not yet released) ("name" "name" "name|" "name\\xxx" "name\\\\" "name\\")
  • Chicken ("name" "name" "name|" "name\\xxx" "name\\\\" "name\\")
  • Gambit ("name" "name" "" "name" "|" "name" "\\" "xxx" "name" "\\\\" "name" "\\")
  • Biwa ("name" "name||" "name|\\||" "name|\\\\|xxx" "name|\\\\\\\\|" "name|\\\\|")
  • Chez Scheme (9.6.4) reader get confused

So Kawa, LIPS (next beta release), Chicken handle escapes as part of the symbol
Gambit, Gauche works the same and return different symbols.

I can create a survey file, but I don't have more implementations on my system to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant