Skip to content

Commit c5410b1

Browse files
authored
Create demo.scm
1 parent 0a092ca commit c5410b1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

demo/demo.scm

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)