diff --git a/src/compile.c b/src/compile.c index e907862..6ac0006 100644 --- a/src/compile.c +++ b/src/compile.c @@ -175,6 +175,16 @@ char* compile_expression(tSyntaxElement* syntaxelement) { string_append(&result,compile_expression(token->next->next)); string_append(&result,"]"); + } else if (strcmp(token->content.string, "neg") == 0) { + + string_append(&result,"-"); + string_append(&result,compile_expression_wrapped(token->next)); + + } else if (strcmp(token->content.string, "not") == 0) { + + string_append(&result,"not"); + string_append(&result,compile_expression_wrapped(token->next)); + } else { string_append(&result,token->content.string);