Hi,
Is it possible to use SSAX with gambit? Anyone using it? After running "make SSAX-code.scm" I tried to load it:
(load "~/scheme/SSAX/lib/SSAX.scm")
*** ERROR IN "../../../SSAX/lib/SSAX.scm"@307.16 -- Ill-placed 'define'
Note: SSAX cvs.
Best Regards,
Afficher les réponses par date
Did you load syntax-case.scm first? A quick look at the source shows that it uses it.
When I try it, I fail at a different place
[brad:~/programs/SSAX/lib] lucier% gsi Gambit Version 4.0 beta 18
(load "~~/syntax-case.scm")
"/usr/local/Gambit-C/4.0b18/syntax-case.scm"
(load "SSAX.scm")
*** ERROR IN "SSAX.scm"@662.27 -- Unbound variable: ascii->char 1>
Trying to load char-encoding.scm explicitly to get a definition of ascii->char and ucscode->char doesn't seem to want to work either:
[brad:~/programs/SSAX/lib] lucier% gsi Gambit Version 4.0 beta 18
(load "~~/syntax-case.scm")
"/usr/local/Gambit-C/4.0b18/syntax-case.scm"
(load "char-encoding.scm")
*** ERROR IN map -- invalid context for definition (define ascii-
char integer->char)
and I sure as hell can't figure out what's going on inside syntax- case.scm. So I decided to load these definitions directly:
[brad:~/programs/SSAX/lib] lucier% gsi Gambit Version 4.0 beta 18
(load "~~/syntax-case.scm")
"/usr/local/Gambit-C/4.0b18/syntax-case.scm"
(define ascii->char integer->char) (define (ucscode->char code)
(cond-expand (bigloo (ucs2->char (integer->ucs2 code))) ((or scheme48 scsh) ; Scheme48 has no support for UCS (ascii->char code)) (else (integer->char code)))) *** ERROR -- Ill-formed 'cond-expand' (cond-expand (bigloo (ucs2->char (integer->ucs2 %%code0))) (((lambda (%%t1) (if %%t1 %%t1 scsh)) scheme48) (ascii->char %%code0)) (else (integer->char %%code0)))
; Commonly used control characters
(define char-return (ascii->char 13))
(define char-tab (ascii->char 9)) (define char-newline (ascii->char 10)) ; a.k.a. #\newline, per R5RS
(load "SSAX.scm") *** ERROR IN "SSAX.scm"@731.3 -- Unbound variable: assert 1>
Looking at it a bit more, it seems that you'll need to specialize myenv.scm for Gambit. You're going to need to play with it to get it to work.
Brad
On Oct 9, 2006, at 5:15 PM, Aycan iRiCAN wrote:
Hi,
Is it possible to use SSAX with gambit? Anyone using it? After running "make SSAX-code.scm" I tried to load it:
(load "~/scheme/SSAX/lib/SSAX.scm")
*** ERROR IN "../../../SSAX/lib/SSAX.scm"@307.16 -- Ill-placed 'define'
Note: SSAX cvs.
Best Regards,
-- Aycan iRiCAN C0R3 Computer Security Group http://people.core.gen.tr/~aycan.irican/ _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Did you try:
http://www196.pair.com/lisovsky/download/ssax/ssax-gambit-49.tgz
which is a port of SSAX to Gambit.
Marc
On 9-Oct-06, at 5:15 PM, Aycan iRiCAN wrote:
Hi,
Is it possible to use SSAX with gambit? Anyone using it? After running "make SSAX-code.scm" I tried to load it:
(load "~/scheme/SSAX/lib/SSAX.scm")
*** ERROR IN "../../../SSAX/lib/SSAX.scm"@307.16 -- Ill-placed 'define'
Note: SSAX cvs.
Best Regards,
-- Aycan iRiCAN C0R3 Computer Security Group http://people.core.gen.tr/~aycan.irican/ _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 10/9/06, Marc Feeley feeley@iro.umontreal.ca wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Did you try:
http://www196.pair.com/lisovsky/download/ssax/ssax-gambit-49.tgz
which is a port of SSAX to Gambit.
That version is for Gambit 3.0
The latest version packaged for Gambit can be found here:
http://prdownloads.sourceforge.net/ssax/ssax-sxml-gambit-060529.tgz?download
Guillaume