We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f04467e + a7bf26e commit 36da8ffCopy full SHA for 36da8ff
1 file changed
www/assignments/3.scrbl
@@ -231,14 +231,14 @@ If you want to set things up as done in 330, you can do the following:
231
;; -> Token
232
;; Produce (but don't consume) the next token
233
(define (look-ahead)
234
- (match *input*
+ (match (unbox *input*)
235
['() (error "no look ahead available")]
236
[(cons t _) t]))
237
238
;; Token -> Token
239
;; EFFECT: consumes one token of input
240
(define (match-tok! t)
241
242
['() (error "no token available")]
243
[(cons next ts)
244
(set-box! *input* ts)
0 commit comments