mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Initial file
This commit is contained in:
parent
73d1fe959a
commit
69a2547b5b
1 changed files with 29 additions and 0 deletions
29
scheme/cyclone/ast.sld
Normal file
29
scheme/cyclone/ast.sld
Normal file
|
@ -0,0 +1,29 @@
|
|||
;;;; Cyclone Scheme
|
||||
;;;; https://github.com/justinethier/cyclone
|
||||
;;;;
|
||||
;;;; Copyright (c) 2014-2016, Justin Ethier
|
||||
;;;; All rights reserved.
|
||||
;;;;
|
||||
;;;; This module defines abstract syntax tree types used during compilation.
|
||||
;;;;
|
||||
|
||||
(define-library (ast)
|
||||
;(define-library (scheme cyclone ast)
|
||||
(import (scheme base))
|
||||
(export
|
||||
ast:make-lambda
|
||||
ast:lambda?
|
||||
ast:lambda-id
|
||||
ast:lambda-args
|
||||
ast:set-lambda-args!
|
||||
ast:lambda-body
|
||||
ast:se-lambda-body!
|
||||
)
|
||||
(begin
|
||||
(define-record-type <lambda-ast>
|
||||
(ast:make-lambda id args body)
|
||||
ast:lambda?
|
||||
(id ast:lambda-id)
|
||||
(args ast:lambda-args ast:set-lambda-args!)
|
||||
(body ast:lambda-body ast:se-lambda-body!))
|
||||
))
|
Loading…
Add table
Reference in a new issue