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

Evaluation aborted as calling CLOSURE by providing the input of the predicate in .satisfies. #13

Closed
APIPLM opened this issue Feb 26, 2022 · 1 comment

Comments

@APIPLM
Copy link

APIPLM commented Feb 26, 2022

As going through the section ".SATISFIES : the parser predicate" in the tutorial. Then I have the input of the predicate digit-char-p to make the CLOSURE for .satisfies , see the below.

(setq ss (.bind (.item) 
        (lambda (x) 
          (if (apply #'digit-char-p x)
              (.identity x)
              (.fail)))))

Then call (funcall ss "1 and") ,then it evaluation aborted. See the following backtrace

  0: ((LAMBDA (X)) #\1)
  1: ((LAMBDA (INPUT) :IN .BIND) "1 and")
  2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (FUNCALL SS "1 and") #<NULL-LEXENV>)
  3: (EVAL (FUNCALL SS "1 and"))
@APIPLM
Copy link
Author

APIPLM commented Mar 1, 2022

The question might not relate to this library.

@APIPLM APIPLM closed this as completed Mar 1, 2022
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