aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/ffi.lua.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/documentation/lux/ffi.lua.lux')
-rw-r--r--stdlib/source/documentation/lux/ffi.lua.lux47
1 files changed, 24 insertions, 23 deletions
diff --git a/stdlib/source/documentation/lux/ffi.lua.lux b/stdlib/source/documentation/lux/ffi.lua.lux
index 0763955d6..b4713841f 100644
--- a/stdlib/source/documentation/lux/ffi.lua.lux
+++ b/stdlib/source/documentation/lux/ffi.lua.lux
@@ -1,6 +1,6 @@
(.require
[library
- [lux (.except int char)
+ [lux (.except)
["$" documentation]
[data
["[0]" text (.only \n)
@@ -8,27 +8,28 @@
[\\library
["[0]" /]])
-(.def .public documentation
- (.List $.Module)
- ($.module /._
- ""
- [($.definition (/.Object brand))
- ($.definition /.Nil)
- ($.definition /.Function)
- ($.definition /.Table)
- ($.definition /.Boolean)
- ($.definition /.Integer)
- ($.definition /.Float)
- ($.definition /.String)
+(def .public documentation
+ (List $.Documentation)
+ (list ($.module /._
+ "")
- ($.definition /.import
- "Easily import types, methods, functions and constants."
- [(import (os/getenv [..String] "io" "?" ..String))])
+ ($.definition (/.Object brand))
+ ($.definition /.Nil)
+ ($.definition /.Function)
+ ($.definition /.Table)
+ ($.definition /.Boolean)
+ ($.definition /.Integer)
+ ($.definition /.Float)
+ ($.definition /.String)
- ($.definition /.closure
- (format "Allows defining closures/anonymous-functions in the form that Lua expects."
- \n "This is useful for adapting Lux functions for usage by Lua code.")
- [(is ..Function
- (closure [left right]
- (do_something (as Foo left) (as Bar right))))])]
- []))
+ ($.definition /.import
+ "Easily import types, methods, functions and constants."
+ [(import (os/getenv [..String] "io" "?" ..String))])
+
+ ($.definition /.function
+ (format "Allows defining closures/anonymous-functions in the form that Lua expects."
+ \n "This is useful for adapting Lux functions for usage by Lua code.")
+ [(is ..Function
+ (function [left right]
+ (do_something (as Foo left) (as Bar right))))])
+ ))