[bitc-dev] Trying hello world in BitC
Pierre THIERRY
nowhere.man at levallois.eu.org
Sun Mar 16 10:04:53 EDT 2008
I've just moved from the old rsync-based bitc source to Mercurial,
successfully built osdoc and the coytools, then bitcc. Now I'd like to
use it a bit to see it in action, but I already struggle with Hello
World:
----8< hello1.bitc ------------------------------------------------------
(bitc-version "0.10")
(import stdio bitc.stdio)
(stdio.write-string stdio.stdin "Hello world!")
----8<------------------------------------------------------------------
$ ./bitcc -I ../include/ hello1.bitc
hello.bitc:3:6: syntax error
Exiting due to errors during Parsing
----8< hello2.bitc ------------------------------------------------------
(bitc-version "0.10")
(import stdio bitc.stdio)
(quux stdio.stdin "Hello world!")
----8<------------------------------------------------------------------
$ ./bitcc -I ../include/ hello2.bitc
hello.bitc:3:5: syntax error
Exiting due to errors during Parsing
So it finds a syntax error at the end of the first identifier of my line
of code (3:6 is the 'o' of stdio and 3:5 is the 'x' of quux).
What am I doing wrong? (FWIW, I'm in $BITC_ROOT/host/bin, after make and
make install)
Laboriously,
Pierre
--
nowhere.man at levallois.eu.org
OpenPGP 0xD9D50D8A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.coyotos.org/pipermail/bitc-dev/attachments/20080316/28b09003/attachment.bin
More information about the bitc-dev
mailing list