Closed dannypsnl closed 1 year ago
Two options
define-parser
define-language
define-language L0 #:with parser
The result function should be able to convert s-expression into language structures.
Draft:
(define-language arith #:with-parser (terminals (Number (n))) (Expr (e) ,n (+ ,e ,e)) (parse-arith '(+ (+ 1 2) 3)) ;=> (arith:Expr:+ (arith:Expr:+ 1 2) 3)
Two options
define-parser
define-language
likedefine-language L0 #:with parser
The result function should be able to convert s-expression into language structures.
Draft: