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

Investiage syntax extensions to use dynamic content instead of string literal #289

Open
jcubic opened this issue Jan 23, 2024 · 0 comments
Labels
enhancement New feature or request experiment

Comments

@jcubic
Copy link
Collaborator

jcubic commented Jan 23, 2024

In SRFI-163 there is new syntax:

#2a((11 12 13) (21 22 23))

It's currently not possible to implement this as an extension.

Using Regular Expression together with string may allow to implement this:

New proposal:

(set-special! #/#[0-9]+a/ 'make-array lips.specials.SPLICE)

I'm not sure how hard it will be to extend the Lexer to use regex instead of string literal.

@jcubic jcubic added the enhancement New feature or request label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request experiment
Projects
None yet
Development

No branches or pull requests

1 participant