BitC isn't an interpreter. Top level forms must be definitions or
declarations.

This, by the way, is something that we intend to permit, because it is
very useful to have. Unfortunately, we didn't think ahead, and it will
require some restructuring of the front end to make it work.

shap


On Sun, 2008-03-16 at 15:04 +0100, Pierre THIERRY wrote:
> 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
> _______________________________________________
> bitc-dev mailing list
> [email protected]
> http://www.coyotos.org/mailman/listinfo/bitc-dev

_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to