diff --git a/src/backend/meta/bytecode.nim b/src/backend/meta/bytecode.nim index f081127..e2dd167 100644 --- a/src/backend/meta/bytecode.nim +++ b/src/backend/meta/bytecode.nim @@ -123,7 +123,11 @@ type BeginTry, FinishTry, Yield, - Await + Await, + BuildList, + BuildDict, + BuildSet, + BuildTuple diff --git a/src/backend/parser.nim b/src/backend/parser.nim index 2fa711d..20b500e 100644 --- a/src/backend/parser.nim +++ b/src/backend/parser.nim @@ -250,7 +250,9 @@ proc primary(self: Parser): ASTNode = of LeftBrace: let tok = self.step() if self.match(RightBrace): - # This yields an empty dictionary + # This yields an empty dictionary, not an empty set! + # For empty sets, there will be a builtin set() type + # that can be instantiated with no arguments result = newDictExpr(@[], @[], tok) else: result = self.expression()