Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

Commit

Permalink
Implement update mongo document
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 8, 2017
1 parent d559f42 commit ae2b7f3
Show file tree
Hide file tree
Showing 10 changed files with 639 additions and 355 deletions.
11 changes: 7 additions & 4 deletions grammar/mongo.g4
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ mongoCommands
: commands EOF
;

commands: (command | emptyCommand | Comment )+;
commands: (command | emptyCommand | comment )+;

command: DB DOT (functionCall | (STRING_LITERAL DOT functionCall)) SEMICOLON?;
command: DB DOT (functionCall | (collection DOT functionCall)) SEMICOLON?;

emptyCommand
: SEMICOLON
;

collection
: STRING_LITERAL;

functionCall
: STRING_LITERAL arguments
: FUNCTION_NAME = STRING_LITERAL arguments
;

arguments
Expand Down Expand Up @@ -71,7 +74,7 @@ propertyName
: QUOTED_STRING_LITERAL
;

Comment
comment
: SingleLineComment
| MultiLineComment
;
Expand Down

0 comments on commit ae2b7f3

Please sign in to comment.