What is a punctuation character?

Brandon Allbery allbery.b at gmail.com
Fri Mar 16 19:18:10 CET 2012


On Fri, Mar 16, 2012 at 14:08, Gabriel Dos Reis <
gdr at integrable-solutions.net> wrote:

> The lexical structure chapter defines the non-terminal uniSymbol as
>
>     uniSymbol ::= any Unicode symbol or punctuation
>
> There is a slight ambiguity here: is that description supposed to
> be parsed as:
>   (a) "Unicode (symbol or punctuation)", or
>   (b) "(Unicode symbol) or punctuation"?
>

(a) and I thought the report specified that the language's lexemes are
defined in terms of Unicode properties so (a) is the only meaningful
interpretation.  (b) is not particularly meaningful, as your own question
demonstrates.

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-prime/attachments/20120316/ace36d09/attachment.htm>


More information about the Haskell-prime mailing list