Skip to content

Commit 9ef489b

Browse files
committed
feat: Add core bytecode definitions, including opcodes and chunk structure, and introduce the object model with various object types and their associated structures and creation functions.
1 parent a49892a commit 9ef489b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/bytecode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ typedef enum {
6060
OP_USE,
6161
OP_TRY,
6262
OP_CATCH,
63-
OP_CATCH,
63+
6464
OP_END_TRY,
6565
OP_INTERFACE,
6666
OP_IMPLEMENT,

include/object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef enum {
6969
OBJ_BOUND_METHOD,
7070
OBJ_LIST,
7171
OBJ_DICTIONARY,
72-
OBJ_DICTIONARY,
72+
7373
OBJ_TASK,
7474
OBJ_INTERFACE
7575
} ObjType;
@@ -188,7 +188,7 @@ ObjString *takeString(char *chars, int length);
188188
ObjString *copyString(const char *chars, int length);
189189
ObjFunction *newFunction();
190190
ObjNative *newNative(NativeFn function);
191-
ObjNative *newNative(NativeFn function);
191+
192192
ObjModule *newModule(ObjString *name);
193193
ObjClosure *newClosure(ObjFunction *function);
194194
ObjUpvalue *newUpvalue(Value *slot);

0 commit comments

Comments
 (0)