s c h e m e w i k i . o r g

/ WebHome / Sandbox.ScmToXexpr

This Web


WebHome 
WebChanges 
WebTopicList 
WebStatistics 

All Webs


Chicken
Cookbook
Erlang
Know
Main
Plugins
Sandbox
Scm
TWiki  

Schematics


Schematics Home
TWiki Shorthand

Offsite Links


Schemers.org
Lambda the Ultimate
twiki.org

Scm2Xexpr - Scheme code formatter

Overview

The program listed below converts Scheme source code, stored in a specified file or text string, into PLT's Xexpr representation of XML. This can be used to generate web pages containing formatted Scheme code. The program listing below is generated by a PLT web servlet which uses this code.

About the code

The code was adapted from Dorai Sitaram's TeX2page, with the following changes:

With the exception of side effects encapsulated in the input stream code, and the use of destructive reverse!, for performance reasons, the resulting program is side-effect free.

scm2xexpr.scm

Syntax Highlighting: error: scm: undefined language

scheme-names.scm

Syntax Highlighting: error: scm: undefined language

pretty.scm

The following is a PLT web servlet which invokes the above code:

Syntax Highlighting: error: scm: undefined language

 
 
© 2004 by the contributing authors. / You are Main.guest