GitXplorerGitXplorer
m

scheme2js-utils

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
95466e19de0508be0c8a5364ba68ca86e579df2e

Use hop if scheme2js is not available

mmasatake committed 11 years ago
Unverified
dd0e5c87455470e19e17a02599c52280690379fa

Assume hop provides scheme compiler

mmasatake committed 11 years ago
Unverified
174ea0ab6624249d436da8a4224420395a3bf26d

Handle hop directory

mmasatake committed 11 years ago
Unverified
29aa448ddfc628b497a998de2e8db7d222911b1f

Handle the line"var sc_..." in lscheme2js

mmasatake committed 14 years ago
Unverified
9e2999662b36793969d252bd2776c2d1ac77af67

Implement stdin.

mmasatake committed 14 years ago
Unverified
baa4149375a71d87e07687c45d93600e6319eb12

Improve error and help messages

mmasatake committed 14 years ago

README

The README file for this repository.

scheme2js-utils is a collection of commands helping scheme2js scripting. lscheme2js and ischeme2js are included.

  • lscheme2js

    This lists all available scheme symbols defined in scheme2js runtime. Currently gauche is required. This should be replaced with scheme2js itself.

    $ lscheme2js | tail with-output-to-procedure ; runtime.js with-output-to-procedure ; runtime_callcc.js with-output-to-procedure ; runtime_interface_callcc.js with-output-to-string ; runtime.js with-output-to-string ; runtime_callcc.js with-output-to-string ; runtime_interface_callcc.js write ; runtime.js write-char ; runtime.js write-circle ; runtime.js zero? ; runtime.js

  • ischeme2js

    This runs scheme2js as if it is interpreter. It invoke scheme2js compiler to compile a given scheme script into a js script then invokes rhino js interpreter to run the js script. ischeme2js is command line tool, no web browser is needed: stdio are established internally.

    $ cat a.scm (display (cons 'x (read)))(newline) (display (cons 'y (read)))(newline) (display (cons 'z (read)))(newline) $ cat input (a) (b) (c) $ ischeme2js a.scm < input (x a) (y b) (z c)

Masatake YAMATO yamato@redhat.com