REBOL3 tracker
  0.9.12 beta
Ticket #0001457 User: anonymous

Project:



rss
TypeBug Statusbuilt Date5-Feb-2010 21:36
Versionalpha 96 CategoryParse Submitted byBrianH
PlatformAll Severityminor Priorityhigh

Summary PARSE string TO or THRU bitset doesn't do anything
Description If you PARSE a string and try to match the TO or THRU operations with a bitset argument it doesn't do anything. It doesn't search for characters in the bitset, it doesn't advance the position, and it doesn't fail. It just succeeds and moves on. The /case option doesn't affect this.
Example code
>> a: charset "a"
== make bitset! #{00000000000000000000000040}
>> parse "a" [thru a]
== false  ; should be true
>> parse "a" [thru a skip]
== true  ; should be false, proves that it succeeds and doesn't advance
>> parse "a" [and thru a skip]
== true  ; proves that it succeeds and doesn't advance
>> parse "ba" [to a skip]
== false  ; should be true
>> parse "ba" [to a "ba"]
== true  ; should be false
>> parse/case "a" [thru a]
== false  ; still doesn't work with /case

Assigned ton/a Fixed inr3 master Last Update7-Mar-2014 18:53


Comments
(0004292)
giuliolunati
2-Mar-2014 09:27

Submitted patch (PR #195)
(0004350)
abolka
7-Mar-2014 18:53

Fixed in: https://github.com/rebol/rebol/pull/195

Date User Field Action Change
7-Mar-2014 18:53 abolka Comment : 0004350 Added -
4-Mar-2014 06:45 BrianH Fixedin Modified => r3 master
4-Mar-2014 06:45 BrianH Status Modified submitted => built
2-Mar-2014 09:27 giuliolunati Comment : 0004292 Added -
2-Nov-2010 05:23 BrianH Code Modified -
5-Feb-2010 21:36 BrianH Ticket Added -