From e05abf6e117be08dc33c7664b3d823c08887de1e Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 6 Dec 2017 04:21:29 -0500 Subject: Massively expanded the reference section. --- docs/embedding.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/embedding.rst') diff --git a/docs/embedding.rst b/docs/embedding.rst index f07b0f6..d179baf 100644 --- a/docs/embedding.rst +++ b/docs/embedding.rst @@ -78,8 +78,8 @@ will automatically determine the name to bind to: session.bind_fn(example) print(*session.run('(example)')) # prints "5" -Finally, to bind a function returning a tuple of results, call -``bind_builtin``. This will automatically determine the name to bind to: +To bind a function returning a tuple of results, call ``bind_builtin``. This +will automatically determine the name to bind to: .. code-block:: python @@ -128,6 +128,11 @@ The symbol must be bound to an instance of the ``Registry`` class from the def two_values(): return 1, "Two" + An.eval(''' + (begin + (define (three-values) (values 1 2 3))) + ''') + # @An.macro_bind, @An.macro_void, @An.macro_fn, and @An.macro_builtin follow # the same pattern. -- cgit v1.2.3