Comments and whitespace

From Erights

(Difference between revisions)
Jump to: navigation, search
Kevin Reid (Talk)
(Archive and test-case the \\ \n ? rejection decision.)

Latest revision as of 13:20, 26 October 2010

XXX Give a sufficiently formal definition here.

Line comments

The character ‘#’ begins a line comment, which may occur anywhere; all characters up to the end of the line are ignored. The characters ‘>’ and ‘?’, which denote Updoc, begin line comments if and only if they are the first non-whitespace character at the beginning of the line.

If the preceding line ended with a line continuation character, then a ‘?’ is a syntax error.

Rationale:

This avoids potential ambiguity over whether ‘?’ is a such-that operator or Updoc. Decision.

? foo =~ bar \
>  ? baz
# syntax error: ...
This page is a stub; it should be expanded with more information. If doing so, check the original E web site and the mailing list archives for content which could be moved into this page.
Personal tools
more tools