forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Parse
angerangel edited this page Mar 19, 2013
·
1 revision
PARSE input rules /all /case
Parses a string or block series according to grammar rules.
PARSE is a native value.
- input -- Input series to parse (series!)
- rules -- Rules to parse by (none = ",;") (block! string! char! none!)
- /all -- For simple rules (not blocks) parse all chars including whitespace
- /case -- Uses case-sensitive comparison
#SOURCE
parse: make native! [ [
{Parses a string or block series according to grammar rules.}
input [series!] "Input series to parse"
rules [block! string! char! none!] {Rules to parse by (none = ",;")}
/all {For simple rules (not blocks) parse all chars including whitespace}
/case "Uses case-sensitive comparison"
] ]