1
Vote

Add "Between" in the SQL grammar Example 89

description

Attached only modification as in the above example where all the code sent, not seen as there is a character limit.

var T_NOT=ToTerm("NOT"); //Added
var NT_BETWEEN=new NonTerminal("NT_BETWEEN");//Added

expression.Rule = term | unExpr | binExpr | betweenExpr;
betweenExpr.Rule=expression+NT_BETWEEN+term+"AND"+term;//added by ECF
NT_BETWEEN.Rule=ToTerm("BETWEEN")|T_NOT+"BETWEEN"; //added by ECF


RegisterOperators(8,"=",">","<",">=","<=","<>","!=","!<","!>","LIKE","IN","BETWEEN");//Added

comments