From 46cc93d3261521ccb9932a506a4d23b132e46434 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sun, 17 Apr 2022 12:34:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20vartype=20related=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ideas-1.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ideas-1.sh b/ideas-1.sh index d52af96..b192480 100644 --- a/ideas-1.sh +++ b/ideas-1.sh @@ -22,13 +22,21 @@ mov|set $1 $2 # load $1 from root scope into current scope glob|global|pub|public $1 -# vartypes +# vartypes (constants containing string of vartype name) null # null true|false # bool eg. -44 27 287634 # int eg. 4.0 -3.0 0.125 # float eg. "bla" 'blub' # str +# vartype($1) => $1 +typ|type $1 + +# cast $1 to type $2 / to int +cst|cast $1 $2 +cst|cast $1 int + + ## MATH ##