[gambit-list] Need help with getting started with lalr

C K Kashyap ckkashyap at gmail.com
Wed Jan 25 13:56:39 EST 2017


I got "*** None of the installed Scheme systems support Scheme Now!" when I
tried to install snow -

Here's the log -

Script started on Wed 25 Jan 2017 10:54:29 AM STD
]0;root at kashyap-desktop: ~ root at kashyap-desktop:~# c [Ktar xzf
/mnt/c/Users/ck k/Downloads/sn ow -generic-v1_1_2.tgz

]0;root at kashyap-desktop: ~ root at kashyap-desktop:~# cd snow-generic/

]0;root at kashyap-desktop: ~/snow-generic root at kashyap-desktop:~/snow-generic#
ls

[0m [01;34mv1.1.2 [0m

]0;root at kashyap-desktop: ~/snow-generic root at kashyap-desktop:~/snow-generic#
. [Kcd v1.1.2/

]0;root at kashyap-desktop: ~/snow-generic/v1.1.2
root at kashyap-desktop:~/snow-generic/v1.1.2#
ls

[0m [01;34mbase [0m           [01;32minstall-sh [0m       makefile.sig
 README.sig        snow-header.gif.sig   [01;35msnow-nav2s.gif [0m
 test.tgz.sig

[01;34mbin [0m            install-sh.sig   [01;32mmkidirs [0m
[01;34msnow [0m               [01;35msnow-nav1.gif [0m
 snow-nav2s.gif.sig  TODO

[01;32mconfigure [0m      makefile         mkidirs.sig   snow-css.css
 snow-nav1.gif.sig     [01;32mtest.scm [0m            TODO.sig

configure.sig  makefile.in       [01;34mpack [0m          snow-css.css.sig
  [01;35msnow-nav2.gif [0m        test.scm.sig

[01;34mexamples [0m       makefile.in.sig  README
[01;35msnow-header.gif [0m   snow-nav2.gif.sig     [01;31mtest.tgz [0m

]0;root at kashyap-desktop: ~/snow-generic/v1.1.2
root at kashyap-desktop:~/snow-generic/v1.1.2#
./configure

Searching for the Scheme systems accessible in the current PATH:

  Chicken 4.8.0.5        -> /usr/bin/csi

  Chicken compiler 4.8.0.5 -> /usr/bin/csc

  Gambit 4.8.7           -> /usr/local/Gambit/bin/gsi

  Gambit compiler 4.8.7  -> /usr/local/Gambit/bin/gsc



These systems were not found (you might want to check the URL to install
them):

  bigloo     -> http://www-sop.inria.fr/mimosa/fp/Bigloo

  chez       -> http://www.scheme.com

  gauche     -> http://www.shiro.dreamhost.com/scheme/gauche

  guile      -> http://www.gnu.org/software/guile

  kawa       -> http://www.gnu.org/software/kawa

  larceny    -> http://www.ccs.neu.edu/home/will/Larceny

  mit        -> http://www.gnu.org/software/mit-scheme

  mzscheme   -> http://www.plt-scheme.org/software/mzscheme

  petite     -> http://www.scheme.com

  rscheme    -> http://www.rscheme.org

  scheme48   -> http://s48.org

  scm        -> http://www-swiss.ai.mit.edu/~jaffer/SCM.html

  scsh       -> http://www.scsh.net

  sisc       -> http://sisc.sourceforge.net

  stalin     -> http://en.wikipedia.org/wiki/Stalin_Scheme_compiler

  stklos     -> http://www.stklos.org



Testing the Scheme systems:

----------------------------------------------- testing chicken



Error: invalid syntax in macro form: (_snow:eval-in-macro-environment .
exprs)



Call history:



<syntax>  (##core#set! snow-namespace-env g4748)

<syntax>  (##core#set! ##sys#alias-global-hook g4950)

<syntax>  (##core#begin (##core#undefined))

<syntax>  (##core#undefined)

<syntax>  (quote ())

<syntax>  (##core#quote ())

<syntax>  (##core#begin (set! ##sys#alias-global-hook
snow-namespace-rename))

<syntax>  (set! ##sys#alias-global-hook snow-namespace-rename)

<syntax>  (##core#set! ##sys#alias-global-hook snow-namespace-rename)

<syntax>  (include "./base/snow.scm")

<syntax>  (##core#include "./base/snow.scm")

<syntax>  (##core#begin (cond-expand (mit (define-macro
(_snow:eval-in-macro-environment . exprs) (eval (cons ...

<syntax>  (cond-expand (mit (define-macro (_snow:eval-in-macro-environment
. exprs) (eval (cons (quote begin) ......

<syntax>  (##core#begin (define-macro (_snow:eval-in-macro-environment .
exprs) (if (pair? exprs) (eval (if (n......

<syntax>  (define-macro (_snow:eval-in-macro-environment . exprs) (if
(pair? exprs) (eval (if (null? (cdr expr......

<syntax>  (_snow:eval-in-macro-environment . exprs) <--

chicken has ***failed*** the self test

----------------------------------------------- testing gambit

START OF SELF TEST

exceptions, records, optional parameters, keywords, fixnum, homovector,
timeFAILED: (and (bignum>= 1485370500 1168000000) (bignum<= 1485370500
1300000000))

, bignum, string, filesys, hostos/bin/sh: 1: unknowncommand: not found

, random, extio, genport, digest, aes, httpFAILED: (equal? 0
(snow-u8vector-length #u8(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255)))

, zlib, tar

END OF SELF TEST   *** 2 TESTS FAILED ***

gambit has ***failed*** the self test

-----------------------------------------------



*** None of the installed Scheme systems support Scheme Now!

*** Consequently, the Scheme Now! framework can't be installed.

*** You might want to install a Scheme system, add it to your

*** PATH, and then run the configure script again.

]0;root at kashyap-desktop: ~/snow-generic/v1.1.2
root at kashyap-desktop:~/snow-generic/v1.1.2#
exit

exit


Script done on Wed 25 Jan 2017 10:55:04 AM STD


On Wed, Jan 25, 2017 at 10:47 AM, C K Kashyap <ckkashyap at gmail.com> wrote:

> I was not using snow correctly (Thanks to Bradley) ... I am going to try
> and install snow and then install the lalr package using snow ...
>
> Will post back with results...
> Regards,
> Kashyap
>
> On Tue, Jan 24, 2017 at 1:01 PM, C K Kashyap <ckkashyap at gmail.com> wrote:
>
>> Hi,
>> I downloaded lalr-v2_3_0.tgz from http://snow.iro.umontreal.ca/?
>> viewpkg=lalr. I then copied lalr.scm and calc.scm from the tgz into a
>> clean directory and tried to load lalr.scm in gsi and got this error -
>>
>> root at kashyap-desktop:~/explore# gsi
>> Gambit v4.8.7
>>
>> > (load "lalr.scm")
>> *** ERROR IN "lalr.scm"@12.20 -- Ill-formed procedure call
>> 1> (exit)
>>
>> Is there some resource I can use to get a headstart with parsing
>> java/csharp like source files in gambit?
>>
>> Would a combinator-based (parsec like) parser be a good idea?
>>
>> Regards,
>> Kashyap
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20170125/48a00aa4/attachment.htm>


More information about the Gambit-list mailing list