melges-morgen / gsoc-gcc-regex

Repository to work on the Regex in gcc
2 stars 0 forks source link

_M_scan_in_bracket failed on valid expression #5

Open slega opened 12 years ago

slega commented 12 years ago

_M_scan_in_bracket failed on (([a-c])+) expression: after analysis of [a-c] token _M_curToken is _S_token_collem_single but _S_token_subexpr_end was expected.

UPD 13.07.12 _M_scan_in_bracket fails on [a-z-A-Z]

slega commented 12 years ago

commit:https://github.com/melges-morgen/gsoc-gcc-regex/commit/f74219166b65f1a72660d8fb1d32d3d27cb4a859. branch: sslega/intervalmatcher .

melges-morgen commented 12 years ago

_M_scan_in_bracket fails on [a-z-A-Z]

emsr commented 12 years ago

Is this valid? I thought it would be [a-zA-Z] without the middle dash.

melges-morgen commented 12 years ago

[a-zA-z] means: any character from a to z, or any of the A to Z. [a-z-A-Z] Means: any character from a to z, or any of the A to Z, or dash.

I check "[a-z-A-Z]" in python, it's worked.