develooper Front page | perl.perl6.compiler | Postings from December 2004

Re: Let the hacking commence!

Thread Previous | Thread Next
From:
Patrick R. Michaud
Date:
December 20, 2004 16:26
Subject:
Re: Let the hacking commence!
Message ID:
20041221002545.GE18465@contra.vosn.net
A few initial questions/comments on some small things -- I'll get
to the bigger constructs a bit later.  I'm an "outside-in" designer,
so I tend to work on the macro and micro levels until I meet in the
middle.

> rule identifier() { <<alpha>> \w* }

Does Perl 6 allow leading underscores in identifiers?  If so,
shouldn't this be

rule identifier() { <+<alpha>+[_]> \w* }

?


> rule open_expression_grouping() { \( }
> rule close_expression_grouping() { \) }
> rule open_argument_list() { \( }
> rule close_argument_list() { \) }

I'm not sure I agree with expression_grouping being defined in this way--
it seems to me that parens (and brackets and braces and dots) are being 
treated as operators (S03, S04), perhaps even "postcircumfix" operators 
if I understand what that means (A12).  So we need to be a bit careful
here.

In addition to reviewing what's been done so far, I'll take a stab
at writing the rules for P6 rules.  :-)

Pm

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About