gilch / hissp

It's Python with a Lissp.
https://gitter.im/hissp-lang/community
Apache License 2.0
364 stars 9 forks source link

Fragment syntax #248

Closed gilch closed 8 months ago

gilch commented 8 months ago

Resolves #209.

Adds the ||-delimited "fragment" tokens. | is no longer allowed unescaped in symbols, sorry, but Common Lisp has the same problem, and it is a design goal of Hissp to be mostly compatible with Lisp editors.

They currently don't allow newlines, which reduces (but does not eliminate) the problem with Parinfer. An internal ; character is still a serious problem. https://github.com/oakmac/parinfer/issues/16 You should be able to inject a string instead as a workaround. Brackets might also be an issue but should be fine as long as they're paired. I think.

Eliminates the #""/"" distinction. "" are no longer raw. Use quoted fragments or comment strings instead.

I think this will make Lissp easier to understand overall, because it's closer to how the underlying Hissp works. But I still need to rewrite a lot of docs.

gilch commented 8 months ago

Docs are not as consistent as I would like, but at least the Primer explains it. I need to sync this up. I'll probably rewrite the docs in one shot once I'm done with the planned changes.