Hi,<br><br>I wrote lexer return (values (intern "{") (intern "{"))<br>but when using LR parser, the following error occurs.<br>I have red the code expanded by macro, and found that the second argument is evaluated, which should be (intern "{").<br>
If the lexer return (values '{ '{), it works.<br>So is there any way to use string to symbol function in lexer?<br>Thanks,<br>Haiwei<br><br><br>Unknown terminal {<br> [Condition of type SIMPLE-ERROR]<br><br>Restarts:<br>
0: [ABORT] Return to SLIME's top level.<br> 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "new-repl-thread" {AEFFD89}>)<br><br>Backtrace:<br> 0: ((LAMBDA (#:G203 #:G205 #:G206))<br> 6<br>
#<unavailable argument><br> (0 #<CLOSURE # {AEE11B5}> #<FUNCTION # {AED86B5}><br> #2A((# # #S(FUCC::ERROR-ACTION) #S(FUCC::ERROR-ACTION)<br> #S(FUCC::ERROR-ACTION) #S(FUCC::ERROR-ACTION)<br>
#S(FUCC::ERROR-ACTION) # #S(FUCC::ERROR-ACTION) # ...)<br> (#S(FUCC::ERROR-ACTION) # # # # # # #S(FUCC::ERROR-ACTION)<br> #S(FUCC::ERROR-ACTION) # ...)<br> (#S(FUCC::ACCEPT-ACTION) #S(FUCC::ERROR-ACTION) ..))))<br>
Locals:<br> SB-DEBUG::ARG-0 = 6<br> SB-DEBUG::ARG-1 =<span style="color: rgb(255, 0, 0);"> :<NOT-AVAILABLE></span><br> SB-DEBUG::ARG-2 = (0 #<CLOSURE (LAMBDA #) {AEE11B5}> #<FUNCTION (LAMBDA #) {AED86B5}>