SExp
Object Hierarchy:
Description:
[ CCode ( type_id = "camel_sexp_get_type ()" ) ]
[ Version ( since = "3.4" ) ]
public class SExp : Object
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
gstring s
.
- public static string? to_sql_sexp (string sexp)
Converts a search expression to an SQL 'WHERE' part statement, without
the 'WHERE' keyword.
Creation methods:
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 given scope
, set to the given value
.
- 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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref