[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] csc and syntax checking
From: |
Manuel Uberti |
Subject: |
[Chicken-users] csc and syntax checking |
Date: |
Wed, 1 Jun 2016 12:49:41 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 |
Hi everybody,
those of you who were on the #chicken IRC yesterday may remember my cumbersome
tries with this. Since I am not always able to be on IRC all the time, I'll try
with a email.
I'm working on a syntax checker for Flycheck (on Emacs). Following Mario Goulart
tips, I am using this:
csc -A -M -P <filename.scm>
I've attached the files I am working on. As you can see, there's a main file
(stitchcounter.scm) and a unit (io-utils.scm).
If I do this:
csc -A -M -P stitchcounter.scm
I get this:
Warning: reference to possibly unbound identifier `get-num' in:
Warning: pick
Warning: option-2
Warning: option-1
Error: module unresolved: main
Error: shell command terminated with non-zero exit status 256:
'/usr/local/bin/chicken' 'stitchcounter.scm' -output-file 'stitchcounter.c'
-analyze-only -module -check-syntax
I see 2 problems here:
- I don't understand the warnings: get-num is defined in io-utils.scm and
stitchcounter.scm uses it correctly (I can produce a binary compiling those 2
files)
- the Error terminated abruptly and so the syntax checker in Flycheck doesn't
work
Any ideas?
Kind regards
--
Manuel Uberti
https://manuel-uberti.github.io
GPG fingerprint = 8702 9F53 2466 A6B5 E3F4 6B44 4E57 A6C4 CAA4 8F62
io-utils.scm
Description: Text Data
stitchcounter.scm
Description: Text Data
- [Chicken-users] csc and syntax checking,
Manuel Uberti <=