Name

lisp_read — parse a Lisp-style s-expression into a Virtuoso value tree

Synopsis

any lisp_read( in str varchar);
 

Description

lisp_read parses a Lisp-style s-expression from str and returns the resulting structure as a Virtuoso value tree (atoms become scalars, lists become arrays). Returns NULL on parse failure. This is the inverse of the server's print_object family used internally for serializing structured values.

Parameters

str

A string containing a Lisp-style s-expression.

Return Types

A Virtuoso value tree (any), or NULL on parse failure.

Examples

Example 24.206. Parse a simple list

SQL> select lisp_read ('(1 2 3)');
      


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®