SExp
Object Hierarchy:
Description:
[ CCode ( type_id = "camel_sexp_get_type ()" ) ]
[ Version ( since = "3.4" ) ]
public class SExp : Object
[ Version ( since = "3.4" ) ]
public class SExp : Object
Namespace: Camel
Package: camel-1.2
Content:
Static methods:
- public static void encode_bool (StringBuilder string, bool v_bool)
Encode a bool into an s-expression
string
. - public static void encode_string (StringBuilder string, string v_string)
Add a c string
v_string
to the s-expression stored in the gstrings
. - public static string? to_sql_sexp (string sexp)
Converts a search expression to an SQL 'WHERE' part statement, without the 'WHERE' keyword.
Creation methods:
- public SExp ()
Methods:
- public void add_function (uint scope, string name, SExpFunc func)
Adds a function symbol which can not perform short evaluation.
- public void add_ifunction (uint scope, string name, SExpIFunc ifunc)
Adds a function symbol which can perform short evaluation, or doesn't execute everything.
- public void add_variable (uint scope, string name, SExpTerm value)
Adds a variable named
name
to the givenscope
, set to the givenvalue
. - public unowned string? error ()
- public unowned SExpResult? eval ()
- public bool evaluate_occur_times (long start, long end)
- public void fatal_error (string why, ...)
Sets an error from the given format and stops execution.
- public void input_file (int fd)
Prepares to scan a file.
- public void input_text (string text, int len)
Prepares to scan a text buffer.
- public int parse ()
- public unowned SExpTerm? parse_value ()
- public void remove_symbol (uint scope, string name)
Revoes a symbol from a scope.
- public void result_free (SExpResult? result)
Frees the
result
and its internal data. - public SExpResult? result_new (int type)
- public void resultv_free (SExpResult[] argv)
Frees an array of results.
- public int set_scope (uint scope)
sets the current scope for the scanner.
- public SExpResult? term_eval (SExpTerm term)
Evaluates a part of the expression.
Inherited Members:
All known members inherited from class GLib.Object