some cool things
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "../../../include/ground.h"
|
||||
#include "../../linenoise/linenoise.h"
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
@@ -65,6 +66,9 @@ int64_t _GroundBytecodeInstructionExecute(GroundBytecodeInstruction* instruction
|
||||
return -2;
|
||||
}
|
||||
INPUT: {
|
||||
char* input = linenoise("");
|
||||
HEAP_SET(heap, instruction->args.at[0], Ground.New.Value.String(Ground.New.String(input)));
|
||||
free(input);
|
||||
return -1;
|
||||
}
|
||||
PRINT: {
|
||||
|
||||
Reference in New Issue
Block a user