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

Nullary functions not accepted by parser #89

Open xiao-cheng opened 8 years ago

xiao-cheng commented 8 years ago

Currently SQL functions such as random() that has zero arguments are not accepted using deepdive compile.

Here is Jaeho's note:

Actually, I took a brief look at ddlog compiler code, and it turns out if you modify one byte in ddlog source, random() will probably be accepted: changing rep1sep to repsep at: https://github.com/HazyResearch/ddlog/blob/master/src/main/scala/org/deepdive/ddlog/DeepDiveLogParser.scala#L240