17 Jan 16:59
STklos failes to run Silex without reporting an error
Sascha Ziemann <ceving <at> gmail.com>
2012-01-17 15:59:28 GMT
2012-01-17 15:59:28 GMT
I am trying to use Silex with STklos. Silex is a lexer generator for Scheme: http://www.iro.umontreal.ca/~dube/silex.tar.gz But when I run Silex with STklos it fails to produce the lexer table without reporting any error: $ stklos * STklos version 1.10 * Copyright (C) 1999-2011 Erick Gallesio - Universite de Nice <eg <at> unice.fr> * * [Linux-2.6.32-bpo.5-amd64-x86_64/pthread/readline/utf8] stklos> (load "silex/silex.scm") stklos> (lex "asn1.l" "stklos.scm") #t stklos> The above session creates the file stklos.scm which contains the lexer. I have attached the file. You can find at line 1756 a single quote without any value. That is the bug. Sorry for the big mail but the bug occurs only with big lexers. When I run Silex with Gauche it works as expected. I have attached the lexer generated by Gauche, which contains the correct value behind the quote. I have also attached my grammar file in order to reproduce the bug. Silex stresses the Scheme interpreter by the number of arguments passed to string-append during an (apply string-append lst) with a lst(Continue reading)
RSS Feed