Another Resyntax pass

remotes/jackfirth/master
Jack Firth 3 years ago
parent 412f3792c3
commit 372a19afa0

@ -17,12 +17,12 @@
;; (vectorof (symbol runtime-action hashtable)) ;; (vectorof (symbol runtime-action hashtable))
(define-for-syntax (convert-parse-table table) (define-for-syntax (convert-parse-table table)
(for/vector ([state-entry (in-vector table)]) (for/vector ([state-entry (in-vector table)])
(let ([ht (make-hasheq)]) (define ht (make-hasheq))
(for ([gs/action (in-list state-entry)]) (for ([gs/action (in-list state-entry)])
(hash-set! ht (hash-set! ht
(gram-sym-symbol (car gs/action)) (gram-sym-symbol (car gs/action))
(action->runtime-action (cdr gs/action)))) (action->runtime-action (cdr gs/action))))
ht))) ht))
(define-syntax (parser stx) (define-syntax (parser stx)
(syntax-case stx () (syntax-case stx ()

Loading…
Cancel
Save