Note that there are some explanatory texts on larger screens.

plurals
  1. PODefine <LINE-START> and <LINE-END> in a lexer
    primarykey
    data
    text
    <p>I am trying to implement a front end which attempts to conform to a subset of <a href="http://download.microsoft.com/download/0/a/6/0a6f7755-9af5-448b-907d-13985accf53e/%5bMS-VBAL%5d.pdf">this specification</a>.</p> <p>It seems that many things are clearly defined in the reference, except <code>&lt;LINE-START&gt;</code> and <code>&lt;LINE-END&gt;</code>, which are nevertheless often used. </p> <p>Here is a citation: "For ease of specification it is convenient to be able to explicitly refer to the point that immediately precedes the beginning of a logical line and the point immediately preceding the final line-terminator of a logical line. This is accomplished using <code>&lt;LINE-START&gt;</code> and <code>&lt;LINE-END&gt;</code> as terminal symbols of the VBA grammars. A <code>&lt;LINE-START&gt;</code> is defined to immediately precede each logical line and a <code>&lt;LINE-END&gt;</code> is defined as replacing the <code>&lt;line-terminator&gt;</code> at the end of each logical line:"</p> <p>Here are some examples:</p> <pre><code>line-terminator = (%x000D %x000A) / %x000D / %x000A / %x2028 / %x2029 line-continuation = *WSC underscore *WSC line-terminator WS = 1*(WSC / line-continuation) EOL = [WS] LINE-END logical-line = LINE-START *extended-line LINE-END if-statement = LINE-START “If” boolean-expression “Then” EOL statement-block *[else-if-block] [else-block] LINE-START ((“End” “If”) / “EndIf”) else-if-block = LINE-START “ElseIf” boolean-expression “Then” EOL LINE-START statement-block else-block = LINE-START “Else” statement-block </code></pre> <p>Does anyone know where and how to define <code>&lt;LINE-START&gt;</code> and <code>&lt;LINE-END&gt;</code>?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload