-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the errorIfExists keywords not match for DSLSQLLexer
- Loading branch information
Showing
12 changed files
with
598 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ null | |
null | ||
'overwrite' | ||
'append' | ||
'errorIfExists' | ||
'errorifexists' | ||
'ignore' | ||
null | ||
null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
streamingpro-dsl/src/main/java/streaming/dsl/parser/DSLSQLBaseListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
226 changes: 226 additions & 0 deletions
226
streamingpro-dsl/src/main/java/streaming/dsl/parser/DSLSQLBaseVisitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
// Generated from /opt/projects/kyligence/byzerCP/byzer-lang/streamingpro-dsl/src/main/resources/DSLSQL.g4 by ANTLR 4.7 | ||
|
||
package streaming.dsl.parser; | ||
|
||
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor; | ||
|
||
/** | ||
* This class provides an empty implementation of {@link DSLSQLVisitor}, | ||
* which can be extended to create a visitor which only needs to handle a subset | ||
* of the available methods. | ||
* | ||
* @param <T> The return type of the visit operation. Use {@link Void} for | ||
* operations with no return type. | ||
*/ | ||
public class DSLSQLBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements DSLSQLVisitor<T> { | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitStatement(DSLSQLParser.StatementContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitSql(DSLSQLParser.SqlContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitAs(DSLSQLParser.AsContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitInto(DSLSQLParser.IntoContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitSaveMode(DSLSQLParser.SaveModeContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitWhere(DSLSQLParser.WhereContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitWhereExpressions(DSLSQLParser.WhereExpressionsContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitOverwrite(DSLSQLParser.OverwriteContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitAppend(DSLSQLParser.AppendContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitErrorIfExists(DSLSQLParser.ErrorIfExistsContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitIgnore(DSLSQLParser.IgnoreContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitBooleanExpression(DSLSQLParser.BooleanExpressionContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitExpression(DSLSQLParser.ExpressionContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitEnder(DSLSQLParser.EnderContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitFormat(DSLSQLParser.FormatContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitPath(DSLSQLParser.PathContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitCommandValue(DSLSQLParser.CommandValueContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitRawCommandValue(DSLSQLParser.RawCommandValueContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitSetValue(DSLSQLParser.SetValueContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitSetKey(DSLSQLParser.SetKeyContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitDb(DSLSQLParser.DbContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitAsTableName(DSLSQLParser.AsTableNameContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitTableName(DSLSQLParser.TableNameContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitFunctionName(DSLSQLParser.FunctionNameContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitColGroup(DSLSQLParser.ColGroupContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitCol(DSLSQLParser.ColContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitQualifiedName(DSLSQLParser.QualifiedNameContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitIdentifier(DSLSQLParser.IdentifierContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitStrictIdentifier(DSLSQLParser.StrictIdentifierContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitQuotedIdentifier(DSLSQLParser.QuotedIdentifierContext ctx) { return visitChildren(ctx); } | ||
} |
Oops, something went wrong.