# New Ticket Created by  Klaas-Jan Stol 
# Please include the string:  [perl #46213]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=46213 >


hi,

while converting lang/PIR into the new Perl6Grammar syntax, I came across
the following.

token relational_operator {
    || '=='
    || '!='
    || '<='
    || '<'
    || '>'
    || '>='
}

At first, I used single bars, like '|'.  However, tests failed. When
switching the last 2 entries ">" and ">=" it worked, probably because I put
the longest token first.

Then I figured I should make explicit I want the longest token. The operator
I should use is "||" instead of "|". However, using "||" didn't solve the
problem when I listed ">" before ">=".
I wonder if this is a bug, or that something else is going on.

regards,
kjs

Reply via email to