REBOL Programming/parse

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

PARSE input rules /all /case 

DESCRIPTION:[edit]

Parses a series according to rules.

PARSE is a native value.

ARGUMENTS:[edit]

  • input -- Input series to parse (Type: series)
  • rules -- Rules to parse by (Type: block string none)

REFINEMENTS:[edit]

  • /all -- Parses all chars including spaces.
  • /case -- Uses case-sensitive comparison.

SOURCE CODE[edit]

parse: native[
    "Parses a series according to rules." 
    input [series!] "Input series to parse" 
    rules [block! string! none!] "Rules to parse by" 
    /all "Parses all chars including spaces." 
    /case "Uses case-sensitive comparison."
]