Bug #21186
Updated by qnighy (Masaki Hara) 9 months ago
`?あand 0` has inconsistent behavior between Prism and parse.y.
```console
% ./miniruby --parser=parse.y -e "?aand 0"
-e:1: syntax error, unexpected '?'
?aand 0
./miniruby: compile error (SyntaxError)
% ./miniruby --parser=parse.y -e "?あand 0"
% ./miniruby --parser=prism -e "?aand 0"
-e: -e:1: syntax error found (SyntaxError)
> 1 | ?aand 0
| ^ unexpected '?', ignoring it
% ./miniruby --parser=prism -e "?あand 0"
-e: -e:1: syntax error found (SyntaxError)
> 1 | ?あand 0
| ^ unexpected '?', ignoring it
% ./miniruby --parser=parse.y -e "?\caand 0"
% ./miniruby --parser=prism -e "?\caand 0"
```
| |parse.y|Prism|
|------------|-------|-----| |----------|-------|-----|
|`?aand 0` | x | x |
|`?あand 0` | 0`| | x |
|`?\caand 0` | | |