Michael Fischer <[EMAIL PROTECTED]> wrote: > On Jun 18, Leopold Toetsch <[EMAIL PROTECTED]> took up a keyboard and banged out >> Piter = slice Pagg[ 1 .. 4, 7, 10 .. ] >> >> (The space between a number and ".." is needed, the lexer would parse >> "1." as a float - workarounds welcome)
> if the cursor is just past an identifier and a "[", when in the > world (or even Perl6) would the next token not be an index? > So, unless floating point array indicies are allowed, you shouldn't > need the space, right? Well yes, that'd be the parsers POV. But the lexer takes what it gets and returns the longest token: 1. -> FLOATC . -> DOT and not 1 -> INTC .. -> DOTDOT > Michael Fischer leo