Fog Creek Software
Discussion Board




BNF for Visual Basic 6

I'm trying to build a parser for VB6 source.

Does anybody know where I might find some BNF (or similar) specifactions for VB6's syntax?

Thanks.

Ged Byrne
Tuesday, March 18, 2003

Check this search http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&safe=off&q=visual+basic+grammar+group%3Acomp.compilers.*

.. on Google Groups

Matthew Lock
Tuesday, March 18, 2003

VB.Net has it's grammar online http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbls7/html/vbSpecStart.asp

Matthew Lock
Tuesday, March 18, 2003

Matthew,

Thanks.  I did try a seach on google, but I keep forgetting about the groups.

Its becoming quite frustrating that everything I want is always in VB.Net.  I'm stuck with VB6!

Ged Byrne
Tuesday, March 18, 2003

I have a nasty feeling there isn't one. In particular since it's been bodged outwards from MS-Basic in places, I'd be very surprised to find a grammar that worked.
Starting from the VB.Net parser might not be a bad place.

Peter Ibbotson
Wednesday, March 19, 2003

(I'm going to show my ignorance here but), What's a BNF?

Wayne
Saturday, April 05, 2003

Wayne -

See:

http://cui.unige.ch/db-research/Enseignement/analyseinfo/AboutBNF.html

Wolf Bogacz
Monday, April 07, 2003

*  Recent Topics

*  Fog Creek Home