Adding to the list of keywords is a start, but you'll also have to modify the parser to indicate where those keywords are valid to be used. You'll also need to modify some of the data structures to store information about what has been parsed. -- Michael Mior mm...@apache.org
Le mar. 29 oct. 2019 à 06:58, devjyoti patra <djpa...@gmail.com> a écrit : > > Hi, > > I am writing a SQL statement (ANSI SQL or HiveQL) analyzer which will parse > a given SQL statement into equivalent AST and I am using Babel for this use > case. But when I try to parse statements such as “lateral view explode”, > which is a valid HiveQL syntax, Babel is throwing ParseException. Adding > these as keywords to the default list of keywords for Babel also did not > help. Can someone point me to an example where something similar has been > done. > > Thanks, > Devjyoti