Rebol Programming/parse

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

USAGE:[edit | edit source]

PARSE input rules /all /case 

DESCRIPTION:[edit | edit source]

Parses a series according to rules.

PARSE is a native value.

ARGUMENTS:[edit | edit source]

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

REFINEMENTS:[edit | edit source]

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

SOURCE CODE[edit | edit source]

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."