minor cleanups

This commit is contained in:
cozis
2021-11-02 14:03:07 +00:00
parent 51083ee090
commit 035649bd63
4 changed files with 10 additions and 8 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
p = (false); p = (false);
if p: if p:
a = 1; {
else a = 1;
}
else
a = 2; a = 2;
print(a); print(a);
+5
View File
@@ -0,0 +1,5 @@
if false:
a = 33;
print(a, '\n');
-3
View File
@@ -375,9 +375,6 @@ static inline _Bool done(Context *ctx)
return current(ctx) == TDONE; return current(ctx) == TDONE;
} }
#warning "TEMP"
#include <stdio.h>
static Node *parse_statement(Context *ctx) static Node *parse_statement(Context *ctx)
{ {
assert(ctx != NULL); assert(ctx != NULL);
-2
View File
@@ -22,8 +22,6 @@ typedef struct {
const char *input, *output; const char *input, *output;
} Options; } Options;
_Bool debug_callback(Runtime *runtime, void *userp);
static int parse_args(Options *opts, int argc, char **argv, Error *error) static int parse_args(Options *opts, int argc, char **argv, Error *error)
{ {
assert(argc >= 0); assert(argc >= 0);