SlideScript A simple, user friendly scripting language.
Using SlideScript
- Compile SS using the make command.
- Install SS using make install.
- Modify test.ss to learn the basics of SS.
- Run ./test.ss to execute the script.
Documentation
Here is a list of functions and features that SlideScript comes with at this moment!
-
Commenting! Examples: Thie simple way of comments! # Comment is real in this one
-
Read and writing to flat files. Examples: write "file.txt" "This will be written to file.txt" read "file.txt"
-
Delete example: delete "file.txt"
-
Execute example: exec "ls -al"
-
Print example: print "Hi everyone!"
-
Sleep (Zzz) example (sleeps for 2 seconds): sleep 2
-
Variable setting variablename=variabledata
-
Variable passing
filename=file.txt -> filename
filedata=File '%filename%' is being moved to moo -> %filename% is populated as file.txt
write "%filename%" "%filedata%" -> writes filedata contents to file.txt as expected.
Todo list
- Add in-script functions
- New static functions
- Network sockets
Done
- Support for linux system calls
- Read and write from file
- Some simple functions
- Shebang handling
- Variable support
Changelog
V0.2.0
- Added "delete" function
- Added embedded variable handling to SS functions (variables can be used like everywhere!)
- Added linux system calls via exec
- Some cleaning up.
V0.1.1
- Added variable handling with a buffer size of 2MB per variable, and cap of 2048 variables.
- Now operates under the shebang!
Contributions: Robert (OldCoder) Kirary -> shebang support and string manipulations
(C) Copyright 2014-2021 Chris Dorman, some rights reserved (CC-BY-SA 3.0)