PIPS
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "linear.h"
#include "genC.h"
#include "misc.h"
#include "ri.h"
#include "properties.h"
#include "ri-util.h"
#include "workspace-util.h"
Go to the source code of this file.
Functions | |
expression | string_to_expression (const char *s, entity module) |
Functions using simultaneously pipsdbm, which is based on strings, and ri-util, which contains basic methods for the objects of the internal representation. More... | |
list | string_to_expressions (const char *str, const char *seed, entity module) |
split a string using seed as separator and call string_to_expression on each chunk More... | |
expression string_to_expression | ( | const char * | s, |
entity | module | ||
) |
Functions using simultaneously pipsdbm, which is based on strings, and ri-util, which contains basic methods for the objects of the internal representation.
try to parse s
in the context of module module
only simple expressions are found
try to find simple expression
unary operators
inary operators
module | odule |
Definition at line 50 of file expressions.c.
References DIVIDE_OPERATOR_NAME, entity_intrinsic(), entity_to_expression(), entity_undefined_p, expression_undefined, expression_undefined_p, free(), free_expression(), int, MakeBinaryCall(), MakeUnaryCall(), MINUS_OPERATOR_NAME, module, MULTIPLY_OPERATOR_NAME, PLUS_OPERATOR_NAME, strdup(), string_to_entity(), and UNARY_MINUS_OPERATOR_NAME.
Referenced by loop_expansion(), loop_expansion_init(), maxima_simplify(), and string_to_expressions().
split a string using seed
as separator and call string_to_expression on each chunk
str | tr |
seed | eed |
module | odule |
Definition at line 98 of file expressions.c.
References CONS, EXPRESSION, expression_undefined_p, FOREACH, free(), gen_free_list(), gen_map(), gen_nreverse(), module, NIL, STRING, string_to_expression(), and strsplit().
Referenced by symbolic_tiling().