5 #include "ebisp/expr.h"
7 typedef struct Script Script;
8 typedef struct LineStream LineStream;
9 typedef struct Broadcast Broadcast;
11 Script *create_script_from_string(Broadcast *broadcast, const char *source);
12 Script *create_script_from_line_stream(LineStream *line_stream,
13 Broadcast *broadcast);
14 void destroy_script(Script *script);
16 // TODO(#881): script_eval should return EvalResult and it should be handled properly everywhere
17 int script_eval(Script *script, struct Expr expr);
19 bool script_has_scope_value(const Script *script, const char *name);
21 const char *script_source_code(const Script *script);
23 Gc *script_gc(const Script *script);