summaryrefslogtreecommitdiffstats
path: root/execute.h
blob: 004b66ba0270aa0afb9b2c7b24415df0190edee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef EXECUTE_H
#define EXECUTE_H
#include "bytecode.h"



struct bytecode* jq_compile(const char* str);

/* args must be an array of the form [{name:"foo", value:"thing"}, {name:"bar",value:3}] */
struct bytecode* jq_compile_args(const char* str, jv args);

typedef struct jq_state jq_state;
enum {JQ_DEBUG_TRACE = 1};

void jq_init(struct bytecode* bc, jv value, jq_state **, int flags);
jv jq_next(jq_state *);
void jq_teardown(jq_state **);


#endif