Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Describing a set of characters Re:(2)

From: brett:codeconscious at: 23-Sep-2000 18:50

And for something to show how this can work:
>> nonquote: complement charset {"}
== make bitset! #{ FFFFFFFFFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF }
>> parse-rule: [any [ copy non-quote-data some nonquote (print
non-quote-data) | {"} (print "a quote!") ]] == [any [copy non-quote-data some nonquote (print non-quote-data) | {"} (print "a quote!")]]
>> parse/all {one" two "three} parse-rule
one a quote! two a quote! three == true Brett.