Michele Dondi writes:
> On Wed, 7 Jul 2004, Luke Palmer wrote:
> 
> > > Are there others, aside from these:  ?
> > > 
> > >     prefix:     a unary prefix operator
> > >     infix:      a binary infix operator
> > >     postfix:    a binary suffix operator
> > >     circumfix:  a bracketing operator
> > 
> > Tons.  From A12:
> [snip]
> 
> On the wild side of things, could there be the possibility of even
> defining new ones?

That's what I meant by:

    grammatical_category:postcircumfix

Though it wouldn't be so magical as to just know what you mean.  If your
mucking with the grammar, though, you should be able to insert hooks.
After all, the writers of the perl 6 parser have to do it.

    rule prefix_op() {
        (@(%Perl::guts::grammatical_categoriesÂprefixÂ))
        <prefix_op>
      |
        <term>
    }

Or something.

Luke

> Michele
> -- 
> DAX ODIA ANCORA
> - Scritta su diversi muri milanesi

Reply via email to