#include <cr-term.h>
Data Fields | |
enum CRTermType | type |
The type of the term. | |
enum UnaryOperator | unary_op |
The unary operator associated to the current term. | |
enum Operator | the_operator |
The operator associated to the current term. | |
union { | |
CRNum * num | |
CRString * str | |
CRRgb * rgb | |
} | content |
The content of the term. | |
union { | |
CRTerm * func_param | |
} | ext_content |
If the term is of type UNICODERANGE, this field holds the upper bound of the range. | |
gpointer | app_data |
A spare pointer, just in case. | |
glong | ref_count |
CRTerm * | next |
A pointer to the next term, just in case this term is part of an expression. | |
CRTerm * | prev |
A pointer to the previous term. | |
CRParsingLocation | location |
Definition at line 82 of file cr-term.h.
|
A spare pointer, just in case. Can be used by the application. |
|
The content of the term. Depending of the type of the term, this holds either a number, a percentage ... Referenced by cr_rgb_set_from_term(), cr_term_one_to_string(), cr_term_set_function(), cr_term_set_hash(), cr_term_set_ident(), cr_term_set_number(), cr_term_set_rgb(), cr_term_set_string(), cr_term_set_uri(), and cr_term_to_string(). |
|
If the term is of type UNICODERANGE, this field holds the upper bound of the range. if the term is of type FUNCTION, this holds an instance of CRTerm that represents the expression which is the argument of the function. Referenced by cr_term_one_to_string(), and cr_term_set_function(). |
|
Definition at line 122 of file cr-term.h. Referenced by cr_term_one_to_string(), and cr_term_set_function(). |
|
Definition at line 145 of file cr-term.h. Referenced by cr_parser_parse_term(). |
|
A pointer to the next term, just in case this term is part of an expression.
Definition at line 138 of file cr-term.h. Referenced by cr_term_append_term(), cr_term_destroy(), cr_term_get_from_list(), cr_term_nr_values(), cr_term_prepend_term(), and cr_term_to_string(). |
|
Definition at line 108 of file cr-term.h. Referenced by cr_term_one_to_string(), cr_term_set_number(), and cr_term_to_string(). |
|
A pointer to the previous term.
Definition at line 144 of file cr-term.h. Referenced by cr_term_append_term(), cr_term_one_to_string(), cr_term_prepend_term(), and cr_term_to_string(). |
|
Definition at line 131 of file cr-term.h. Referenced by cr_term_ref(), and cr_term_unref(). |
|
Definition at line 110 of file cr-term.h. Referenced by cr_rgb_set_from_term(), cr_term_one_to_string(), cr_term_set_rgb(), and cr_term_to_string(). |
|
Definition at line 109 of file cr-term.h. Referenced by cr_rgb_set_from_term(), cr_term_one_to_string(), cr_term_set_function(), cr_term_set_hash(), cr_term_set_ident(), cr_term_set_string(), cr_term_set_uri(), and cr_term_to_string(). |
|
The operator associated to the current term.
Definition at line 98 of file cr-term.h. Referenced by cr_term_one_to_string(), and cr_term_to_string(). |
|
The type of the term.
Definition at line 87 of file cr-term.h. Referenced by cr_parser_parse_term(), cr_rgb_set_from_term(), cr_term_one_to_string(), cr_term_set_function(), cr_term_set_hash(), cr_term_set_ident(), cr_term_set_number(), cr_term_set_rgb(), cr_term_set_string(), and cr_term_set_uri(). |
|
The unary operator associated to the current term.
Definition at line 93 of file cr-term.h. Referenced by cr_parser_parse_term(), and cr_term_one_to_string(). |