[][src]Function rvs::rvs_parse

#[no_mangle]pub extern "C" fn rvs_parse(
    context: *mut Context,
    s: *const c_char,
    error: *mut Error
)

Parses a semicolon delimited string of Rvs statements and/or Rvs files.

A terminating semicolon is optional.

Errors

Errors are reported via the optional error struct pointer if available. The following errors types are possible:

  • Parsing errors
  • IO errors

Panics

If any pointer arguments are null.

Examples

A single Rvs statement:

"a = 5"

A single Rvs file:

"example.rvs"

An Rvs file and an Rvs statement:

"example.rvs; a = 5;"