Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

ANTLR 4 with BQL grammar?

128 views
Skip to first unread message

Otis

unread,
Mar 5, 2014, 9:55:52 AM3/5/14
to sensei...@googlegroups.com
Hi,

Would it be possible to use BQL grammar with ANTLR 4?
Over on https://theantlrguy.atlassian.net/wiki/pages/viewpage.action?pageId=1900596 Terrence Parr, ANTLR author, says:
"The biggest difference between ANTLR 3 and 4 is that ANTLR 4 takes any grammar you give it unless the grammar had indirect left recursion. "

Has anyone tried using ANTLR4 with BQL grammar?

Thanks,
Otis
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/

Otis

unread,
Mar 6, 2014, 5:12:17 PM3/6/14
to sensei...@googlegroups.com
Wow, not sure if Sensei devs saw this, but a person from ANTLR world jumped in and issues this PR:


Otis
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/


John Wang

unread,
Mar 6, 2014, 5:29:35 PM3/6/14
to sensei...@googlegroups.com
This is great!

Thanks Otis!

Baoqiu, do you want to take a look and let's get this in as soon as possible.

Thanks

-John


--
You received this message because you are subscribed to the Google Groups "Sensei" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sensei-searc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yonghui Zhao

unread,
Mar 7, 2014, 6:36:31 AM3/7/14
to sensei...@googlegroups.com
Let's merge in the change, and fix the ut, and do some test.

Yonghui Zhao

unread,
Mar 7, 2014, 6:51:42 AM3/7/14
to sensei...@googlegroups.com
I have pulled https://github.com/sharwell/sensei/tree/antlr4 to my local branch.

I will do some test, before I merge it to master

bao...@gmail.com

unread,
Mar 7, 2014, 11:02:40 AM3/7/14
to sensei...@googlegroups.com
Looks to me the original patch author is still working on it. I will take a look at ANTLR 4 and learn about his change, and then work with Yonghui to get the patch into our main branch.

Thanks,
Baoqiu


Yonghui Zhao <zhaoy...@gmail.com>编写:
For more options, visit https://groups.google.com/d/optout.

Yonghui Zhao

unread,
Mar 11, 2014, 8:50:35 AM3/11/14
to sensei...@googlegroups.com
I have fixed the test case.

Error message are from 2 sources now. 

1.  IllegalStateException from BQLCompilerAnalyzer
2.  ParseCancellationException from BQLParser

Yonghui Zhao

unread,
Mar 12, 2014, 6:10:44 AM3/12/14
to sensei...@googlegroups.com
Sam fixed the test case.

Now antlr is upgrade to v4. The pull request is merged.

Thanks Otis.

Baoqiu Cui

unread,
Mar 12, 2014, 7:21:31 AM3/12/14
to sensei...@googlegroups.com
Thanks to everyone for the great help!

Baoqiu
Reply all
Reply to author
Forward
0 new messages