Types, fns and vars are now written in another, better, more intuitive and readable way. Types: "pointer to const char" is "* const char" "array of pointers to volatile int" is "[* volatile int]" Read left to right Vars (as well as fn args, struct fields): (var name type) (struct vec3 ((x float) (y float) (z float)) (fn vec3-add ((v1 vec3) (v2 vec3)) vec3 ...) Also fns are now have return types after arg list. * is now must not be attached to any type name (or variable for that matter)
18 lines
298 B
Scheme
18 lines
298 B
Scheme
(declare (uses fmt-c-writer
|
|
semen))
|
|
|
|
(import
|
|
(chicken process)
|
|
(chicken process-context)
|
|
srfi-1
|
|
test)
|
|
|
|
(include "basic.scm")
|
|
(include "semen.scm")
|
|
(include "reader.scm")
|
|
(include "fmt-c-writer.scm")
|
|
(include "utils.scm")
|
|
|
|
;;; Should be the last in the test suite
|
|
(test-exit)
|