NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

2. Lexical Grammar

The first step in compiling a Visual Basic 7.0 program is to translate a raw stream of Unicode characters into a series of logical lines made up of an ordered set of lexical tokens. A logical line spans from either the start of the stream or a line terminator through to the next line terminator, excepting line continuations.

Start ::= [ LogicalLine+ ]

LogicalLine ::= [ LogicalLineElement+ ] [ Comment ] LineTerminator
LogicalLineElement ::= Whitespace | Token
Token ::= Identifier | Keyword | Literal | Separator | Operator