From d9612b615af3cb55d98503a1a553a070f75149f2 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 26 Apr 2016 22:31:09 +0200 Subject: Add preliminary support for Chibi Scheme --- scheme/chibi/geiser/geiser.scm | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 scheme/chibi/geiser/geiser.scm (limited to 'scheme/chibi/geiser/geiser.scm') diff --git a/scheme/chibi/geiser/geiser.scm b/scheme/chibi/geiser/geiser.scm new file mode 100644 index 0000000..a6b37f3 --- /dev/null +++ b/scheme/chibi/geiser/geiser.scm @@ -0,0 +1,49 @@ +(define (all-environment-exports environment prefix) + (if environment + (append (filter (lambda (identifier) + (if (string=? prefix "") + #t + (string-contains identifier prefix))) + (map symbol->string (env-exports environment))) + (all-environment-exports (env-parent environment) prefix)) + '())) + +(define (geiser:completions prefix . rest) + rest + (sort (all-environment-exports (current-environment) prefix) + string-ci