Skip to content

Commit 1244c48

Browse files
committed
[Heavy] Export plugin functions/syntax
1 parent 4eec6de commit 1244c48

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

heavy/include/heavy/base.sld

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#t #f))
1313
) ; end of begin
1414
(export
15-
; syntax
1615
define
1716
define-syntax
1817
if
@@ -102,8 +101,13 @@
102101
symbol?
103102
vector?
104103

105-
; Extended types.
104+
; Extended types
106105
mlir-operation?
107106
source-value?
107+
108+
; Plugin stuff
109+
load-plugin
110+
load-builtin
111+
define-binding
108112
)
109113
)

heavy/test/Plugin/hello_world.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: heavy-scheme %s | FileCheck %s
2-
(import (heavy builtins))
1+
; RUN: heavy-scheme --module-path=%heavy_module_path %s | FileCheck %s
2+
(import (heavy base))
33

44
(load-plugin "libheavyHelloWorld.so")
55
(define my-write

0 commit comments

Comments
 (0)