S2CI(1)
π S2CI β the manual page, but make it cute β¨
okay bestie, gather round, because we're talking about s2ci(1) β yes, that's the General Commands Manual entry, and yes, it's giving iconic Scheme energy. ππ
πΈ NAME πΈ
s2ci β Scheme interpreter. that's it, that's the whole vibe. π
β¨ SYNTAX β¨
s2ci [ option ]
just the command, maybe a lil option, and you're off. slay.
π¦ DESCRIPTION π¦
so the s2ci command (which, fun fact, used to be called sci β glow-up era π
) invokes a Scheme interpreter.
the language it accepts is the one defined in the essential portions of the Revised4 Report on the Algorithmic Language Scheme, with a few minor constraints and some additions. not the whole thing, the essential portions. keep up. π
and here's the lowkey wild part: the Scheme interpreter is written in Scheme, which has then been compiled using the Scheme-to-C compiler, s2cc. it's Scheme all the way down, bestie. π no cap.
π OPTIONS π
these options are accepted by s2ci. there are ten of them. we're doing all ten. periodt. π
-eβ echoes text read from the standard input file onto the standard output file. π-emacsβ the Scheme interpreter is controlled by GNU emacs. yes, emacs. it's a whole thing.-nhβ do not print the interpreter version header on the standard output file. no header, no problem.-npβ do not prompt for input from the standard input file on the standard output file. quiet lil guy.-qβ do not print the result of each expression evaluation. you asked, it stays silent. π€«-scgcstatflag β enables garbage collection statistics. if set to1, then garbage collection statistics will be printed. the default is0, which results in no statistics. ποΈβ¨-schheap β specifies the initial size of the heap in megabytes. the default heap size is4MB. the maximum heap size allowed is1000MB. don't go past that, she's fragile. π-sclpercent β specifies the percent of the heap allocated after a generational garbage collection that will force a full collection. the default is40%.-scmmain β specifies the function that should be used instead of the predefined"main". β οΈ the function name must be entered in the correct case, i.e. letters typically upshifted. case matters, bestie, do not play. π-scmhheap β specifies the maximum heap size in megabytes. the default is five times the initial size of the heap. π
π ENVIRONMENT VARIABLES π
plot twist: the things controlled by the -sc.. flags can also be controlled by environment variables. and if you pass both the flag and the environment variable? the flag's value wins. flag supremacy, iykyk. π
SCGCINFOβ controls the reporting of garbage collection statistics to the standard error file. if set to1, then garbage collection statistics will be printed. the default setting is0, which will not print the statistics.SCHEAPβ specifies the initial size of the heap in megabytes. the default heap size is4MB. the maximum heap size allowed is1000MB.SCLIMITβ specifies the percent of the heap allocated after a generational garbage collection that will force a full collection. the default is40%.SCMAXHEAPβ specifies the maximum size of the heap in megabytes. the default value is five times the initial heap size.
π FILES π
the interpreter is one a.out file with the name s2ci. everything else that comes with the interpreter lives in the directory .../schemetoc/scrt. one file, one folder, minimal drama. π§
π SEE ALSO π
the reading list, bestie. it's long. it's academic. it's slay. π
- Harold Abelson and Gerald Jay Sussman with Julie Sussman, Structure and Interpretation of Computer Programs, The MIT Press.
- William Clinger and Jonathan Rees (Editors), Revised4 Report on the Algorithmic Language Scheme, LISP Pointers, Volume IV, Number 3, July-September 1991. PostScript for this report is included in the software distribution.
- Jerry D. Smith, An Introduction to Scheme, Prentice Hall, Inc. Chapter notes for using this text with Scheme->C are included in the software distribution.
- R. Kent Dybvig, The SCHEME Programming Language, Prentice Hall, Inc.
- Daniel P. Friedman and Matthias Felleisen, The Little LISPer, MIT Press.
- Joel F. Bartlett, Scheme->C a Portable Scheme-to-C Compiler, WRL Research Report 89/1.
additional documentation is included in the software distribution. π«Ά
s2cc(1)β the compiler bestie, go say hi.
π¬ QUESTIONS, COMMENTS, AND COMPLAINTS π¬
got thoughts? got feelings? got beef with the heap size? take it here:
http://alioth.debian.org/projects/scheme2c/
β lowkey reminder: this page isS2CI(1), and the footer says local β that's the source/version, and the date's the same as the page itself, so consider this your cute lil sign-off: local edition,S2CI(1), forever and always. mwah. πβ¨π
π¦ where this page comes from
- ubuntu jammy: scheme2c 2012.10.14-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms