Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #39483] [TODO] fix PGE::OpTable comments, test.

7 views
Skip to first unread message

Will Coleda

unread,
Jun 15, 2006, 10:58:39 AM6/15/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Will Coleda
# Please include the string: [perl #39483]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=39483 >


This is a valid PGE::OpTable grammar:

grammar _Tcl::Grammar::Expr;

##proto 'prefix:-' is precedence('1=') {...}

...

This is not:

grammar _Tcl::Grammar::Expr;

#proto 'prefix:-' is precedence('1=') {...}

...

Apparently the double # is needed for comments.

Also, need to test comment handling in t/compilers/pge/03-optable.t

--
Will "Coke" Coleda
wi...@coleda.com


Patrick R. Michaud

unread,
Jun 21, 2006, 12:23:46 PM6/21/06
to perl6-i...@perl.org
On Thu, Jun 15, 2006 at 07:58:39AM -0700, Will Coleda wrote:
>
> This is a valid PGE::OpTable grammar:
>
> grammar _Tcl::Grammar::Expr;
>
> ##proto 'prefix:-' is precedence('1=') {...}
>
> ...
>
> This is not:
>
> grammar _Tcl::Grammar::Expr;
>
> #proto 'prefix:-' is precedence('1=') {...}

Are you referring to input files for pgc here?

> Apparently the double # is needed for comments.

Shouldn't be. Both versions compile just fine for me on my
system (r12990) and appear recognize that the leading # is a comment.
So, there must be something else happening here.

> Also, need to test comment handling in t/compilers/pge/03-optable.t

PGE::OPTable isn't normally responsible for parsing comments
(except perhaps as a skip between tokens, depending on the "ws"
rule). I'm guessing you're looking for testing comment handling
in pgc.pir.

Thanks!

Pm

0 new messages