Skip to content

Commit 00b9021

Browse files
committed
Modify grammar
1 parent 5e475f2 commit 00b9021

File tree

8 files changed

+1989
-2002
lines changed

8 files changed

+1989
-2002
lines changed

x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.tokens

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ processingCommand
5757
| joinCommand
5858
| changePointCommand
5959
| completionCommand
60+
| forkCommand
6061
// in development
6162
| {this.isDevVersion()}? inlinestatsCommand
6263
| {this.isDevVersion()}? lookupCommand
6364
| {this.isDevVersion()}? insistCommand
64-
| {this.isDevVersion()}? forkCommand
6565
| {this.isDevVersion()}? rerankCommand
6666
| {this.isDevVersion()}? rrfCommand
6767
| {this.isDevVersion()}? sampleCommand
@@ -278,7 +278,7 @@ insistCommand
278278
;
279279

280280
forkCommand
281-
: DEV_FORK forkSubQueries
281+
: FORK forkSubQueries
282282
;
283283

284284
forkSubQueries

x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.tokens

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/antlr/lexer/Fork.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lexer grammar Fork;
99
//
1010
// Fork
1111
//
12-
DEV_FORK : {this.isDevVersion()}? 'fork' -> pushMode(FORK_MODE);
12+
FORK : 'fork' -> pushMode(FORK_MODE);
1313

1414
mode FORK_MODE;
1515
// commands needs to break out of their mode and the default mode when they encounter RP

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer.interp

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer.java

Lines changed: 1122 additions & 1132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)