0

I am trying to

  1. Override assign operator(=) in JEXL3 with equals functionality to make it support SQL like statements to support below statement:

WHERE A=B

  1. And SQL like IN operator support in JEXL3 so that it should support below statements:

WHERE column_name IN (value1, value2, ...)

What classes I need to override to make it work. Any help will be appreciated?

100rabh
  • 6,156
  • 5
  • 27
  • 41

1 Answers1

1

Modifying the JEXL syntax and interpreter to turn into a SQL one seems overly complicated; you would have to start with the grammar in parser.jjt but I'd advise against such an endeavour.

henrib
  • 187
  • 6
  • I am just planning to provide support for few SQLish operators . Can making changes in my own application be possible inspite of changing JEXL codebase? – 100rabh Jun 20 '22 at 12:08
  • Is adding a new operator support not available in JEXL @henrib – 100rabh Jun 21 '22 at 14:35
  • 1
    Adding new operators would require changing the grammar (again). May be http://www.slop.dev would be a better starting point for your requirements. – henrib Jun 27 '22 at 19:25
  • Ok thanks. I ended up changing the grammar itself. – 100rabh Jun 29 '22 at 10:10