[Mono-list] mbas: Special behavior for first line of source file?
Andrew S. Townley
atownley@meridianp2p.com
07 Mar 2003 11:07:28 +0000
----=_NextPart_ST_11_08_49_Friday_March_07_2003_3960
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi. Let me start by saying that I wouldn't be the biggest VB wizard
(and I can't check this because I'm waiting for IT to get me a license
for the Visual Studio .NET), but I don't remember that the first line of
a source file has to start with a keyword.
Basically, I couldn't figure out why my stupid hello world program
wouldn't work, but then I did one without comments and it worked. If
you start the file with either a blank line or a comment, the compiler
gives the following error:
$ mbas hello.vb
syntax error, expecting EOF CLASS DELEGATE ENUM FRIEND IMPORTS INTERFACE
MODULE
NAMESPACE OPTION PRIVATE PROTECTED PUBLIC SHARED STRUCTURE OP_LT
Line: 2 Col: 0
VirtLine: 2 Token: 308 : Parsing error in hello.vb
hello.vb(2) error BC9999:
Mono.MonoBASIC.yyParser.yyException: irrecoverable syntax error
in <0x00701> 00 Mono.MonoBASIC.Parser:yyparse
(Mono.MonoBASIC.yyParser.yyInput)
in <0x00244> 00 Mono.MonoBASIC.Parser:parse ()
Compilation failed: 1 Error(s), 0 warnings
is this really how it is supposed to be? Sorry for asking such a
bone-headed question, but something bone-headed like this wouldn't
surprise me since VB these days just seems like a series of bolt-ons on
top of bolt-ons.
Thanks in advance,
ast
--=20
Andrew S. Townley <atownley@meridianp2p.com>
----=_NextPart_ST_11_08_49_Friday_March_07_2003_3960
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA+aH1wlLbNLLbqqhQRAvxDAJ0Tl5ZoTc1v+yVt9IcN0DP1uDcF0QCfSq14
CiOe8qcr1+m/NDlXeV4vupQ=
=ZCG2
-----END PGP SIGNATURE-----
----=_NextPart_ST_11_08_49_Friday_March_07_2003_3960--