HazyResearch / ddlog

Compiler for writing DeepDive applications in a Datalog-like language — ⚠️🚧🛑 REPO MOVED TO DEEPDIVE 👇🏿
https://github.com/HazyResearch/deepdive/tree/master/compiler/ddlog
19 stars 4 forks source link

>= and <= comparator not working #90

Closed xiao-cheng closed 8 years ago

xiao-cheng commented 8 years ago
2016-03-18 14:38:18.924605 [error] app.ddlog[42.64] failure: `(' expected but `=' found
2016-03-18 14:38:18.924718
2016-03-18 14:38:18.924741   normalized_links(_, _, _, surface, title, link_id),[link_id >= 0].
2016-03-18 14:38:18.924757
2016-03-18 14:38:18.924776                                                                ^
‘run/ABORTED.COMPILE’ -> ‘20160318/143818.232710662’

I fixed it by changing the condition to link_id > -1. It then compiled and ran fine. I think there might be a bug with the inequality operator

alldefector commented 8 years ago

Fixed in dynamic scope branch, which will be merged to master soon.