guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SRFI-105: syntax error/warning


From: Alexandru Cojocaru
Subject: SRFI-105: syntax error/warning
Date: Mon, 26 Aug 2013 20:30:09 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

Hi,
when using the SRFI-105 syntax everything works fine, but I receive syntax warnings

    bash> cat 1.scm
    (read-enable 'curly-infix)
    (define a {1 + 1}) (newline)
    (display a) (newline)
    bash> guile --debug 1.scm
    ;;; WARNING: compilation of /home/Joryk/lab/1.scm failed:
    ;;; ERROR: Syntax error:
;;; /home/Joryk/lab/1.scm:2:0: source expression failed to match any pattern in form (define a #{\x7b;1}# + #{1\x7d;}#)

    2

when running the same code from the REPL I don't get any warnings.
More over the following won't run at all:
    bash> cat 2.scm
    (read-enable 'curly-infix)
    (display {1 + 1}) (newline)
    bash> guile --debug 2.scm
    Backtrace:

    /*** stripped ***/

    /home/Joryk/lab/2.scm:2:0: In procedure #<procedure 201c1650 ()>:
/home/Joryk/lab/2.scm:2:0: In procedure module-lookup: Unbound variable: #{\x7b;1}#

guile --version: 2.0.9-dirty

Best regards,
Alexandru Cojocaru









reply via email to

[Prev in Thread] Current Thread [Next in Thread]