Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   PARSE input rules /all /case

DESCRIPTION

Parses a string or block series according to grammar rules.

PARSE is a native value.

ARGUMENTS

  • input -- Input series to parse (series!)
  • rules -- Rules to parse by (none = ",;") (block! string! char! none!)

REFINEMENTS

  • /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"
] ]
Clone this wiki locally