On 17.03.2014 23:33, Robert Schadek wrote:
On 03/17/2014 11:24 PM, H. S. Teoh wrote:
On Mon, Mar 17, 2014 at 11:16:12PM +0100, Robert Schadek wrote:
replace .. with : to make lexing easier, please
auto b = arr[(someCondition) ? w:x : y:z];
:-(
T
Thats a parsing problem.
1..1 makes you think you got a prefix of a float 1. but actually you got
an int slice_operator int. If there where no .. flex like generator
could handle D, at least as far as I can see it.
".." is a tiny problem regarding lexing in comparison to all the string
types in D. How do you deal with DelimitedString and TokenString
(http://dlang.org/lex#DelimitedString) when using a lexer generator?