We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a092ca commit c5410b1Copy full SHA for c5410b1
demo/demo.scm
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env gsi-script
2
+
3
+(define-library (github.com/gambit/python demo)
4
5
+ (import (..)) ;; relative import of python (preserves the version)
6
+ (import (gambit)) ;; for lambda, this-source-file, etc
7
+ (import (_six python)) ;; for \... syntax
8
9
+ (begin
10
11
+ (define year 2025)
12
13
+ (println "Calendar for " year ":")
14
15
+ \import calendar
16
17
+ (print \calendar.calendar(`year))
18
19
+ (println "Demo source code: " (this-source-file))))
0 commit comments