-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/multi_column_delete_to_exist
- Loading branch information
Showing
62 changed files
with
3,746 additions
and
3,932 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
14 changes: 14 additions & 0 deletions
14
core/src/main/antlr4/com/databricks/labs/remorph/parsers/lib/README.md
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,14 @@ | ||
# ANTLR Grammar Library | ||
|
||
This directory contains ANTLR grammar files that are common to more than one SQL dialect. Such as the grammar that covers stored procedures, which all | ||
dialects of SQL support in some form, and for which we have a universal grammar. | ||
|
||
ANTLR processes included grammars as pure text, in the same way that say the C pre-processor processes `#include` directives. | ||
This means that you must be careful to ensure that: | ||
- if you define new tokens in an included grammar, that they do not clash with tokens in the including grammar. | ||
- if you define new rules in an included grammar, that they do not clash with rules in the including grammar. | ||
In particular, you must avoid creating ambiguities in rule/token prediction, where ANTLR will try to create | ||
a parser anyway, but generate code that performs extremely long token lookahead, and is therefore very slow. | ||
|
||
In other words, you cannot just arbitrarily throw together some common Lexer and Parser rules and expect them | ||
to just work. |
Oops, something went wrong.