Skip to content

Commit

Permalink
Add contact information; Update charstring definition
Browse files Browse the repository at this point in the history
  • Loading branch information
lincheng96 authored and tugraph committed May 23, 2023
1 parent 18273ce commit 05d7495
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 30 deletions.
44 changes: 16 additions & 28 deletions GQLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -185,32 +185,16 @@ floatLiteral
| UNSIGNED_DECIMAL_IN_SCIENTIFIC_NOTATION
;

unbrokenSingleQuotedCharacterSequence
: SINGLE_QUOTED_STRING_LITERAL
;

unbrokenDoubleQuotedCharacterSequence
: DOUBLE_QUOTED_STRING_LITERAL
;

unbrokenAccentQuotedCharacterSequence
: ACCENT_QUOTED_STRING_LITERAL
;

singleQuotedCharacterSequence
: unbrokenSingleQuotedCharacterSequence (VERTICAL_BAR unbrokenSingleQuotedCharacterSequence)*
: SINGLE_QUOTED_STRING_LITERAL
;

doubleQuotedCharacterSequence
: unbrokenDoubleQuotedCharacterSequence (VERTICAL_BAR unbrokenDoubleQuotedCharacterSequence)*
: DOUBLE_QUOTED_STRING_LITERAL
;

accentQuotedCharacterSequence
: unbrokenAccentQuotedCharacterSequence (VERTICAL_BAR unbrokenAccentQuotedCharacterSequence)*
;

unbrokenCharacterStringLiteral
: (unbrokenSingleQuotedCharacterSequence | unbrokenDoubleQuotedCharacterSequence)
: ACCENT_QUOTED_STRING_LITERAL
;

nullLiteral
Expand All @@ -232,19 +216,19 @@ sqlDatetimeLiteral
;

dateLiteral
: DATE unbrokenCharacterStringLiteral
: DATE characterStringLiteral
;

timeLiteral
: TIME unbrokenCharacterStringLiteral
: TIME characterStringLiteral
;

datetimeLiteral
: (DATETIME | TIMESTAMP) unbrokenCharacterStringLiteral
: (DATETIME | TIMESTAMP) characterStringLiteral
;

durationLiteral
: DURATION unbrokenCharacterStringLiteral
: DURATION characterStringLiteral
| sqlIntervalLiteral
;

Expand Down Expand Up @@ -380,7 +364,7 @@ bindingVariable
predefinedTypeLiteral
: booleanLiteral
| characterStringLiteral
| BYTE_STRING_LITERAL
| byteStringLiteral
| temporalLiteral
| durationLiteral
| nullLiteral
Expand All @@ -397,6 +381,10 @@ characterStringLiteral
| doubleQuotedCharacterSequence
;

byteStringLiteral
: BYTE_STRING_LITERAL
;

procedureBody
: atSchemaClause? bindingVariableDefinitionBlock? statementBlock
;
Expand Down Expand Up @@ -2409,15 +2397,15 @@ datetimeFunctionParameters
;

dateString
: unbrokenCharacterStringLiteral
: characterStringLiteral
;

timeString
: unbrokenCharacterStringLiteral
: characterStringLiteral
;

datetimeString
: unbrokenCharacterStringLiteral
: characterStringLiteral
;

durationFunction
Expand All @@ -2431,7 +2419,7 @@ durationFunctionParameters
;

durationString
: unbrokenCharacterStringLiteral
: characterStringLiteral
;

generalFunction
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ Contributions to this project are welcome. If you find any issues or have sugges

## License

This project is licensed under the [Apache License 2.0](LICENSE).
This project is licensed under the [Apache License 2.0](LICENSE).

## Contact

Email: [email protected]
6 changes: 5 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ ISO GQL (ISO/IEC 39075) Antlr4 语法文件

## 许可证

本项目使用[Apache License 2.0](LICENSE)
本项目使用[Apache License 2.0](LICENSE)

## 联系方式

Email: [email protected]

0 comments on commit 05d7495

Please sign in to comment.