From a671c3e5325981ca82addae8353b180fc488bae2 Mon Sep 17 00:00:00 2001 From: Robert-M-Lucas Date: Mon, 17 Jun 2024 16:03:51 +0100 Subject: [PATCH] Added exit functions --- .idea/workspace.xml | 57 +++++++++++++-------- build/out.asm | 38 ++++++++++---- build/out.o | Bin 1024 -> 1088 bytes build/out.out | Bin 16744 -> 16744 bytes main.why | 9 ++-- src/root/builtin/functions/exit.rs | 51 ++++++++++++++++++ src/root/builtin/functions/mod.rs | 9 ++++ src/root/builtin/mod.rs | 2 + src/root/builtin/types/int/printi.rs | 2 +- src/root/compiler/compile_function.rs | 6 +-- src/root/compiler/compile_function_call.rs | 2 +- types.toml | 10 ++++ 12 files changed, 147 insertions(+), 39 deletions(-) create mode 100644 src/root/builtin/functions/exit.rs diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5a58bfb..3433c62 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -8,8 +8,18 @@ + - + + + + + + + + + + - { - "keyToString": { - "Cargo.Run whython-8.executor": "Run", - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "RunOnceActivity.rust.reset.selective.auto.import": "true", - "git-widget-placeholder": "master", - "ignore.virus.scanning.warn.message": "true", - "last_opened_file_path": "/home/robertlucas/RustroverProjects/whython-8/src/root/builtin/int", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "org.rust.cargo.project.model.PROJECT_DISCOVERY": "true", - "org.rust.cargo.project.model.impl.CargoExternalSystemProjectAware.subscribe.first.balloon": "", - "org.rust.first.attach.projects": "true", - "settings.editor.selected.configurable": "preferences.pluginManager", - "vue.rearranger.settings.migration": "true" + +}]]> @@ -169,6 +179,7 @@ + + + +