From 273382b200a300bfe8fe0664ca8ec1861f61861b Mon Sep 17 00:00:00 2001 From: Chris Dorman Date: Tue, 17 May 2022 21:17:29 -0700 Subject: [PATCH] Fixed bug where variables register without an equal, --- docs/examples/functions.ss.lz | Bin 2417 -> 0 bytes docs/examples/functions.ss.ss | 118 ---------------------------------- 2 files changed, 118 deletions(-) delete mode 100644 docs/examples/functions.ss.lz delete mode 100755 docs/examples/functions.ss.ss diff --git a/docs/examples/functions.ss.lz b/docs/examples/functions.ss.lz deleted file mode 100644 index 024be65000c5b694c78e2b6259c41f2ee22312fc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2417 zcmV-%36Ayx0U!W?6XztzsRDrDkTQo1CBc528W{3YjrbNFcyQk|aG@ zp&`LsNtP{LzJwW5=1iJ3ZQjJ0Qzt}OC?zP{8C2*{qD74!MVeIUQl?FvK7|@p>Qt&# ztzN~NRqIx+UA=w<8&>RCvSrO~i~(TeMsRR2R7?l}g^-2`))F*mQDMP@aZfOG2vH(M zy%{xb>Rl4`gH2mtzXBUy*hO1Ag+{Q zGv-a3G9c)@F^{JFoi}pWkOA?=42UVlkxyCPoK6T3{r&$3APCcO7aa&xppnKLASlP2 zb08!Lf_ie4XGVMJmB&UIVaVZzaA$x3M;&s&@x~m<#W&v+QwS&>fg^wrgd2H)V4NG} z%|XY8ba)8D9cj>k1_)t97{(lE7F$a1Rno-7t@SP{5f-1@hVHtSPF(G+u%vhlu zXQW{VkHW1vM;=^;fd`RpkWu3qA*@*h9$~ZrM}|7A=^q@-aS4J5;&E99mm-kbpQ*yp zfr6@UuDk>``;nfeB??&Trply`u~WRau3*y*RCmND&rcQ6NK zs%8Y+>ZfJ6K*yjWq)NtE_6;w%nFc>%8HTcP}01 z>Z`5@y0+WjyHExUZoLGTYjD2%uDdX-Nl*bJ6HIvbgcM6m!QYzo9aqMi`hno&k~2m+ zDIO<^QDl_yxdB2Pb-V$kf?-?=!Wv~DT8A5B?09RB?U6BuoNGD@ZJ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D6j#NV0K`g$aCf~xB$}qB3yVhisM~2(`yR~AkAhthPyrq4GNgFr$sOW8Gt|q zAcz4BWI%&{eKo8&TWWbm&AYClrww&r!;WYK$vhobXHP1mIcr_&Q>S{>t=?&|L5pe- z$Y8ipW~PD=IwJxzx;(-8kQ+=2*)K-OubX;N`%?D4ti|w)}E^xK=I;FfD8d$NXXEpi5(oPv_}c)^Fd#0@S1;^|O=Hx}CSk;i)Bd;Y2tyFv7% zH$8~5Hy_6bUiDr((dM#7dJS^4?e^RH2oLEgP-RE~9ZXh(XK?!3ihv2hr~TAtU><=d zhvGvR54vw8(ano``-@Y&+8Zo_&e35E2%6l%&Y%9tE8z8_SNq~-U+5`#{|r;UmDoOw ze#u);6}W+kTvPaMhyoPN0H(_PZ3x9p0Z4_x8H9mw#GTr0h~KfwM|~0afr|Kn0r{m$ js|gnf(tvPLUg&{92`r!-)Zg=k4ja_LiL@UYXb?aEx?5}N diff --git a/docs/examples/functions.ss.ss b/docs/examples/functions.ss.ss deleted file mode 100755 index 74d2eb9..0000000 --- a/docs/examples/functions.ss.ss +++ /dev/null @@ -1,118 +0,0 @@ -#!/usr/bin/slidescript -############################################################# -#### Welcome to the world of SlideScript! #### -#### This script is here for the learning purposes of SS #### -#### Any line starting with a hashtag will treated as a #### -#### comment! #### -############################################################# - -# Slide Script, also refered to as SS, is extremely forgiving in -# syntax handling! -# Example: -# print "content" -# print("content") -### -### These will operate properly, as well as: -# Example: -# write "filename.txt" "data" -# write "filename.txt", "data" -# write("filename.txt" "data") -# write("filename.txt", "data") -# -# IT ALL WORKS! -# SlideScript really syntaxes based on quotes and key function words, -# as well as pipes. It really doesn't mind whats around it otherwise -# And every variable is called by %varname%, defining variables, as normal - -# Variables in SS -ss_filename=file.txt -ss_stringdata=Data to encrypt and decrypt -ss_exec_command=uname -a - -# Printing function in SS -print "Welcome to SlideScript!" -# Sleep function in SS -print "Some content to print, working with '%ss_filename%' today!" -# Below demonstrates SS encrypting a string, passing the output -# over a pipe, and using the write function and %PIPE% variable -# holding the first functions output, writes to %ss_filename%; file.txt -### %PIPE% is the output from the first line function, enc -### %PIPE% is always applied when a pipe is used! -encode "%ss_stringdata%" | write "%ss_filename%" "%PIPE%" -# You're left with file.txt, lets move on - -# Lets read the file we just created and show how SS handles its -# own decryption algorithm -read "%ss_filename%" | decrypt "%PIPE%" -# Will display the original variable string! - -# SS MD5 function -# Lets get the md5sum of file.txt with our md5 function -md5 "%ss_filename%" | write "%ss_filename%.md5" "%PIPE%" -# Use a pipe, and push the md5 into a text file of file.txt - -# You can also stack pipes for whatever tasks you may need -# Here's the encrypt function in action, can also be used as encode -md5 "%ss_filename%" | encode "%PIPE%" | write "%ss_filename%.md5.enc" "%PIPE%" - -# Read md5 file -print "%ss_filename%.md5:" -read "%ss_filename%.md5" - -# Read encrypted md5 file and decrypt using decode alias -print "%ss_filename%.md5.enc:" -read "%ss_filename%.md5.enc" | decode "%PIPE%" - -# Delete function, SS can delete files and directories with one function -# NOTE: it is extremely powerful and can wreck your system if used in the -# wrong way! Proceed with caution, delete "/" WILL send your files to the -# grave. -### -# Lets delete the files we've been messing with, no system calls needed -delete "%ss_filename%" -delete "%ss_filename%.md5" -delete "%ss_filename%.md5.enc" -# Gone! - -print "Playing with some calc..." -# calc function, lets do some basic math -calc "32 * 1024" -# You can pipe calc to do multi layer equations -calc "32 * 1024" | calc "%PIPE% * 2" - -# Lets play with some big numbers here! -# SlideScript parses its calc functions using floating points, so you can -# handle decimal as well -calc "1024 * 1024" | calc "%PIPE% * %PIPE%" - -# Decimal -print "Here comes the decimal:" -calc "46 / 3.4" - -# Execute function, SS can call unix system calls! -# Executes the ss_exec_command variable data, 'ls' -print "Testing exec function on system" -exec "%ss_exec_command%" - -# comp, loop, if, and ifn examples - -# Check to see if /bin/sh exists -exist=`isfile "/bin/sh"` - -# Report findings on /bin/sh -if: %exist%; print "/bin/sh exists!" -ifn: %exist%; printf "/bin/sh does not exist!" - -# Loop functions, example -loop: 3; print "Loop print 3 times" - -# Compare strings -compvar=`comp: "matching" "match"` -ifn: %compvar%; print "Strings don't match" - -# Unset compvar -unset "compvar" - -# Set again, and compare integers -compvar=`comp: "245" "245"` -if: %compvar%; print "Values match!"