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

Can't use Perl embedded modifiers (?i) #7

Open
ghost opened this issue Jul 23, 2021 · 1 comment
Open

Can't use Perl embedded modifiers (?i) #7

ghost opened this issue Jul 23, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 23, 2021

Hello,

define-string-lexer do not support embedded modifiers like case-sensitive : (?i).

With the following example :
(define-string-lexer my-lexer ("(?i)foobar" (return (values 'foobar 'boobar))))

i get :

Execution of a form compiled with errors.
Form:
  (DEFINE-STRING-LEXER MY-LEXER
  ("(?i)foobar" (RETURN (VALUES 'FOOBAR 'FOOBAR))))
Compile-time error:
  (during macroexpansion of (DEFINE-STRING-LEXER MY-LEXER
  ...))
invalid named register in (?i)foobar
   [Condition of type SB-INT:COMPILED-PROGRAM-ERROR]

Any idea how to use Perl embedded modifiers, and particulary insensitive case ?

Thanks

@djr7C4
Copy link
Owner

djr7C4 commented Jul 23, 2021 via email

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

No branches or pull requests

1 participant