Open GoogleCodeExporter opened 9 years ago
Here are some ideas for a "term, expression, and function" engine.
The syntax for terms and expressions, in Coco/r, could look somewhat like
Coco's sample Taste and Arith
compilers. These generate a byte code program for a simple stack machine. You
have to decide on a type
system before implementing expressions.
Regular expression matching should be supported, perhaps calling regcomp() at
config time, and regexec() at
runtime.
Once types are decided on, you just have to come up with a calling convention,
and then you can support
functions.
Original comment by john.david.duncan
on 7 May 2008 at 6:15
Step 1, support arithmetic expressions in a WHERE clause.
Step 2, support CHECK (issue#70)
Step 3, add function-calling support to expressions.
Step 4, allow expressions in the SELECT clause.
Original comment by john.david.duncan
on 7 May 2008 at 6:40
There's a good VM on pages 231-236 of TPOP.
Original comment by john.david.duncan
on 7 May 2008 at 10:52
Original issue reported on code.google.com by
john.david.duncan
on 4 May 2008 at 4:22