Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mongodb/MongoShellParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,9 @@ longHelper
: (LONG | NUMBER_LONG) LPAREN (NUMBER | stringLiteral) RPAREN
;

// Int32(n), NumberInt(n)
// Int32(n), Int32("n"), NumberInt(n), NumberInt("n")
int32Helper
: (INT32 | NUMBER_INT) LPAREN NUMBER RPAREN
: (INT32 | NUMBER_INT) LPAREN (NUMBER | stringLiteral) RPAREN
Comment on lines +822 to +824
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grammar now accepts Int32("n") / NumberInt("n"), but the parser test suite (driven by mongodb/examples/*.js) currently only exercises numeric Int32(100) / NumberInt(100). Please add examples for the quoted-string forms (e.g., in examples/helper_functions.js) so this new syntax is covered and regressions are caught.

Copilot uses AI. Check for mistakes.
;

// Double(n)
Expand Down
Loading
Loading