Skip to content

Commit 1acb783

Browse files
committed
fix the errorIfExists keywords not match for DSLSQLLexer
1 parent 0918c76 commit 1acb783

File tree

11 files changed

+597
-22
lines changed

11 files changed

+597
-22
lines changed

streamingpro-dsl/src/main/java/streaming/dsl/parser/DSLSQL.interp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ null
3232
null
3333
'overwrite'
3434
'append'
35-
'errorIfExists'
35+
'errorifexists'
3636
'ignore'
3737
null
3838
null

streamingpro-dsl/src/main/java/streaming/dsl/parser/DSLSQL.tokens

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ UNRECOGNIZED=45
7474
'where'=29
7575
'overwrite'=31
7676
'append'=32
77-
'errorIfExists'=33
77+
'errorifexists'=33
7878
'ignore'=34
7979
'!'=40
8080
'/**/'=42

streamingpro-dsl/src/main/java/streaming/dsl/parser/DSLSQLBaseListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated from DSLSQL.g4 by ANTLR 4.7.1
1+
// Generated from /opt/projects/kyligence/byzerCP/byzer-lang/streamingpro-dsl/src/main/resources/DSLSQL.g4 by ANTLR 4.7
22

33
package streaming.dsl.parser;
44

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
// Generated from /opt/projects/kyligence/byzerCP/byzer-lang/streamingpro-dsl/src/main/resources/DSLSQL.g4 by ANTLR 4.7
2+
3+
package streaming.dsl.parser;
4+
5+
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
6+
7+
/**
8+
* This class provides an empty implementation of {@link DSLSQLVisitor},
9+
* which can be extended to create a visitor which only needs to handle a subset
10+
* of the available methods.
11+
*
12+
* @param <T> The return type of the visit operation. Use {@link Void} for
13+
* operations with no return type.
14+
*/
15+
public class DSLSQLBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements DSLSQLVisitor<T> {
16+
/**
17+
* {@inheritDoc}
18+
*
19+
* <p>The default implementation returns the result of calling
20+
* {@link #visitChildren} on {@code ctx}.</p>
21+
*/
22+
@Override public T visitStatement(DSLSQLParser.StatementContext ctx) { return visitChildren(ctx); }
23+
/**
24+
* {@inheritDoc}
25+
*
26+
* <p>The default implementation returns the result of calling
27+
* {@link #visitChildren} on {@code ctx}.</p>
28+
*/
29+
@Override public T visitSql(DSLSQLParser.SqlContext ctx) { return visitChildren(ctx); }
30+
/**
31+
* {@inheritDoc}
32+
*
33+
* <p>The default implementation returns the result of calling
34+
* {@link #visitChildren} on {@code ctx}.</p>
35+
*/
36+
@Override public T visitAs(DSLSQLParser.AsContext ctx) { return visitChildren(ctx); }
37+
/**
38+
* {@inheritDoc}
39+
*
40+
* <p>The default implementation returns the result of calling
41+
* {@link #visitChildren} on {@code ctx}.</p>
42+
*/
43+
@Override public T visitInto(DSLSQLParser.IntoContext ctx) { return visitChildren(ctx); }
44+
/**
45+
* {@inheritDoc}
46+
*
47+
* <p>The default implementation returns the result of calling
48+
* {@link #visitChildren} on {@code ctx}.</p>
49+
*/
50+
@Override public T visitSaveMode(DSLSQLParser.SaveModeContext ctx) { return visitChildren(ctx); }
51+
/**
52+
* {@inheritDoc}
53+
*
54+
* <p>The default implementation returns the result of calling
55+
* {@link #visitChildren} on {@code ctx}.</p>
56+
*/
57+
@Override public T visitWhere(DSLSQLParser.WhereContext ctx) { return visitChildren(ctx); }
58+
/**
59+
* {@inheritDoc}
60+
*
61+
* <p>The default implementation returns the result of calling
62+
* {@link #visitChildren} on {@code ctx}.</p>
63+
*/
64+
@Override public T visitWhereExpressions(DSLSQLParser.WhereExpressionsContext ctx) { return visitChildren(ctx); }
65+
/**
66+
* {@inheritDoc}
67+
*
68+
* <p>The default implementation returns the result of calling
69+
* {@link #visitChildren} on {@code ctx}.</p>
70+
*/
71+
@Override public T visitOverwrite(DSLSQLParser.OverwriteContext ctx) { return visitChildren(ctx); }
72+
/**
73+
* {@inheritDoc}
74+
*
75+
* <p>The default implementation returns the result of calling
76+
* {@link #visitChildren} on {@code ctx}.</p>
77+
*/
78+
@Override public T visitAppend(DSLSQLParser.AppendContext ctx) { return visitChildren(ctx); }
79+
/**
80+
* {@inheritDoc}
81+
*
82+
* <p>The default implementation returns the result of calling
83+
* {@link #visitChildren} on {@code ctx}.</p>
84+
*/
85+
@Override public T visitErrorIfExists(DSLSQLParser.ErrorIfExistsContext ctx) { return visitChildren(ctx); }
86+
/**
87+
* {@inheritDoc}
88+
*
89+
* <p>The default implementation returns the result of calling
90+
* {@link #visitChildren} on {@code ctx}.</p>
91+
*/
92+
@Override public T visitIgnore(DSLSQLParser.IgnoreContext ctx) { return visitChildren(ctx); }
93+
/**
94+
* {@inheritDoc}
95+
*
96+
* <p>The default implementation returns the result of calling
97+
* {@link #visitChildren} on {@code ctx}.</p>
98+
*/
99+
@Override public T visitBooleanExpression(DSLSQLParser.BooleanExpressionContext ctx) { return visitChildren(ctx); }
100+
/**
101+
* {@inheritDoc}
102+
*
103+
* <p>The default implementation returns the result of calling
104+
* {@link #visitChildren} on {@code ctx}.</p>
105+
*/
106+
@Override public T visitExpression(DSLSQLParser.ExpressionContext ctx) { return visitChildren(ctx); }
107+
/**
108+
* {@inheritDoc}
109+
*
110+
* <p>The default implementation returns the result of calling
111+
* {@link #visitChildren} on {@code ctx}.</p>
112+
*/
113+
@Override public T visitEnder(DSLSQLParser.EnderContext ctx) { return visitChildren(ctx); }
114+
/**
115+
* {@inheritDoc}
116+
*
117+
* <p>The default implementation returns the result of calling
118+
* {@link #visitChildren} on {@code ctx}.</p>
119+
*/
120+
@Override public T visitFormat(DSLSQLParser.FormatContext ctx) { return visitChildren(ctx); }
121+
/**
122+
* {@inheritDoc}
123+
*
124+
* <p>The default implementation returns the result of calling
125+
* {@link #visitChildren} on {@code ctx}.</p>
126+
*/
127+
@Override public T visitPath(DSLSQLParser.PathContext ctx) { return visitChildren(ctx); }
128+
/**
129+
* {@inheritDoc}
130+
*
131+
* <p>The default implementation returns the result of calling
132+
* {@link #visitChildren} on {@code ctx}.</p>
133+
*/
134+
@Override public T visitCommandValue(DSLSQLParser.CommandValueContext ctx) { return visitChildren(ctx); }
135+
/**
136+
* {@inheritDoc}
137+
*
138+
* <p>The default implementation returns the result of calling
139+
* {@link #visitChildren} on {@code ctx}.</p>
140+
*/
141+
@Override public T visitRawCommandValue(DSLSQLParser.RawCommandValueContext ctx) { return visitChildren(ctx); }
142+
/**
143+
* {@inheritDoc}
144+
*
145+
* <p>The default implementation returns the result of calling
146+
* {@link #visitChildren} on {@code ctx}.</p>
147+
*/
148+
@Override public T visitSetValue(DSLSQLParser.SetValueContext ctx) { return visitChildren(ctx); }
149+
/**
150+
* {@inheritDoc}
151+
*
152+
* <p>The default implementation returns the result of calling
153+
* {@link #visitChildren} on {@code ctx}.</p>
154+
*/
155+
@Override public T visitSetKey(DSLSQLParser.SetKeyContext ctx) { return visitChildren(ctx); }
156+
/**
157+
* {@inheritDoc}
158+
*
159+
* <p>The default implementation returns the result of calling
160+
* {@link #visitChildren} on {@code ctx}.</p>
161+
*/
162+
@Override public T visitDb(DSLSQLParser.DbContext ctx) { return visitChildren(ctx); }
163+
/**
164+
* {@inheritDoc}
165+
*
166+
* <p>The default implementation returns the result of calling
167+
* {@link #visitChildren} on {@code ctx}.</p>
168+
*/
169+
@Override public T visitAsTableName(DSLSQLParser.AsTableNameContext ctx) { return visitChildren(ctx); }
170+
/**
171+
* {@inheritDoc}
172+
*
173+
* <p>The default implementation returns the result of calling
174+
* {@link #visitChildren} on {@code ctx}.</p>
175+
*/
176+
@Override public T visitTableName(DSLSQLParser.TableNameContext ctx) { return visitChildren(ctx); }
177+
/**
178+
* {@inheritDoc}
179+
*
180+
* <p>The default implementation returns the result of calling
181+
* {@link #visitChildren} on {@code ctx}.</p>
182+
*/
183+
@Override public T visitFunctionName(DSLSQLParser.FunctionNameContext ctx) { return visitChildren(ctx); }
184+
/**
185+
* {@inheritDoc}
186+
*
187+
* <p>The default implementation returns the result of calling
188+
* {@link #visitChildren} on {@code ctx}.</p>
189+
*/
190+
@Override public T visitColGroup(DSLSQLParser.ColGroupContext ctx) { return visitChildren(ctx); }
191+
/**
192+
* {@inheritDoc}
193+
*
194+
* <p>The default implementation returns the result of calling
195+
* {@link #visitChildren} on {@code ctx}.</p>
196+
*/
197+
@Override public T visitCol(DSLSQLParser.ColContext ctx) { return visitChildren(ctx); }
198+
/**
199+
* {@inheritDoc}
200+
*
201+
* <p>The default implementation returns the result of calling
202+
* {@link #visitChildren} on {@code ctx}.</p>
203+
*/
204+
@Override public T visitQualifiedName(DSLSQLParser.QualifiedNameContext ctx) { return visitChildren(ctx); }
205+
/**
206+
* {@inheritDoc}
207+
*
208+
* <p>The default implementation returns the result of calling
209+
* {@link #visitChildren} on {@code ctx}.</p>
210+
*/
211+
@Override public T visitIdentifier(DSLSQLParser.IdentifierContext ctx) { return visitChildren(ctx); }
212+
/**
213+
* {@inheritDoc}
214+
*
215+
* <p>The default implementation returns the result of calling
216+
* {@link #visitChildren} on {@code ctx}.</p>
217+
*/
218+
@Override public T visitStrictIdentifier(DSLSQLParser.StrictIdentifierContext ctx) { return visitChildren(ctx); }
219+
/**
220+
* {@inheritDoc}
221+
*
222+
* <p>The default implementation returns the result of calling
223+
* {@link #visitChildren} on {@code ctx}.</p>
224+
*/
225+
@Override public T visitQuotedIdentifier(DSLSQLParser.QuotedIdentifierContext ctx) { return visitChildren(ctx); }
226+
}

0 commit comments

Comments
 (0)