-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpr.lua
More file actions
45 lines (45 loc) · 933 Bytes
/
expr.lua
File metadata and controls
45 lines (45 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
sptbl["expr"] = {
files = {
module = "adsr.c",
header = "adsr.h",
example = "examples/ex_square.c",
},
func = {
create = "sp_expr_create",
destroy = "sp_expr_destroy",
init = "sp_zxpr_init",
compute = "sp_expr_compute",
},
params = {
mandatory = {
{
name = "exp",
type = "char*"
description = "expression to parse"
default = "N/A"
},
{
name = "names",
type = "char**"
description = "array of variable names"
default = "N/A"
},
{
name = "num",
type = "int"
description = "umber of variables"
default = "N/A"
}
}
},
modtype = "module",
description == [[ parse mathematical expression ]],
ninputs = 0,
noutputs = 1,
outputs = {
{
name = "out",
description = "result of expression."
},
}
}