You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the problem is that all three of the bits that precede ['e' 'e'] are optional. The typical way to deal with this problem is to force one of the second or third decimal bits to be non-empty. I don't have an example to hand of this sort of thing, but I think you can probably find one in the ocaml compiler sources. But there are lots of examples in lex specifications all over the place, I'm sure.
Which doesn't match "E1" and IMO is easier to read. For a more surgical approach I think you can get away with changing * to + on your first digit match.
I think the problem is that all three of the bits that precede
['e' 'e']
are optional. The typical way to deal with this problem is to force one of the second or third decimal bits to be non-empty. I don't have an example to hand of this sort of thing, but I think you can probably find one in the ocaml compiler sources. But there are lots of examples in lex specifications all over the place, I'm sure.The text was updated successfully, but these errors were encountered: