Skip to content

Commit

Permalink
Finalization.
Browse files Browse the repository at this point in the history
- Removed superfluous parentheses in FLOAT_LITERAL.
- Edited comment lines in test scripts.
  • Loading branch information
pdamme committed Jan 28, 2025
1 parent aba5206 commit fa39aa3
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/parser/sql/SQLGrammar.g4
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ INT_LITERAL:
'-'? DIGIT+;
FLOAT_LITERAL:
'-'? (( DIGIT* '.' DIGIT+) | ((DIGIT+ '.' DIGIT*)));
'-'? (( DIGIT* '.' DIGIT+) | (DIGIT+ '.' DIGIT*));
STRING_LITERAL:
('"' (ESCAPE_SEQ | ~[\\"])* '"') | ('\'' (ESCAPE_SEQ | ~['\\])* '\'');
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/between_1.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BETWEEN clause test with Strings as attributes
# BETWEEN clause with strings as attributes.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/between_2.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BETWEEN clause test with Integers as attribute
# BETWEEN clause with integers as attributes.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/between_3.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Multiple BETWEEN clause test
# Multiple BETWEEN clauses.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/between_4.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BETWEEN clause test with following AND from the WHERE clause
# BETWEEN clause with following AND from the WHERE clause.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/strings_1.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# String for SQL test using equality
# String equality.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/strings_2.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# String for SQL test using greater than comparision
# String greater-than comparision.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/strings_3.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# String for SQL test using unequal and escaped double quotes
# String unequal and escaped double quotes.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/strings_4.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# String for SQL test using equality and multi character Strings
# String equality and multi-character strings.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/strings_5.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# String for SQL test using greater equal and multi character Strings
# String greater-equal and multi-character strings.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down
2 changes: 1 addition & 1 deletion test/api/cli/sql/strings_6.daphne
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# String for SQL test for escape character
# String escape characters.

f = createFrame(
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
Expand Down

0 comments on commit fa39aa3

Please sign in to comment.