19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.14.1 Multicharacter Enclosing Operators<br />

<strong>The</strong> following multicharacter sequences (in which there must be no other characters, and particularly no whitespace)<br />

can be used as brackets as described below:<br />

1. Any contiguous nonempty sequence of vertical-line characters is a vertical-line operator. Such an operator can<br />

be used in an enclosing pair matching itself.<br />

2. Any of ‘(’ or ‘[’ or ‘{’ may be immediately followed by any number of ‘/’ characters or by any number of ‘\’<br />

characters. Such a token is a left bracket, and it is matched by the multicharacter token consisting of the same<br />

number and kind of ‘/’ or ‘\’ characters followed immediately by a matching ‘)’ or ‘]’ or ‘}’, as appropriate.<br />

Thus, for example, “(////” and “////)” are matching left and right brackets respectively. (In the future,<br />

we may allow tokens with mixtures of ‘/’ and ‘\’, in which case the left and right brackets should match from<br />

outside in. But for now, such tokens are simply illegal.)<br />

3. One or more ‘’ characters as there are ‘

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!