-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from stormprograms/dev
StormScript v0.5.0
- Loading branch information
Showing
37 changed files
with
148 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
#!/bin/bash | ||
cmake CMakeLists.txt | ||
cmake CMakeLists.txt -DCMAKE_CXX_COMPILER:STRING="g++" | ||
make | ||
sudo cp stormscript /usr/bin | ||
g++ src/libraries/system/reader.cc -o src/libraries/system/system.stslib | ||
g++ src/libraries/random/reader.cc -o src/libraries/random/random.stslib | ||
|
||
if [ ! -e ~/.stormscript ]; then | ||
mkdir ~/.stormscript | ||
echo 'export PATH=$PATH:'$HOME'/.stormscript' >> ~/.bashrc | ||
fi | ||
|
||
cp src/libraries/*/*.stslib ~/.stormscript | ||
cp src/libraries/*/*.py ~/.stormscript | ||
cp -r api/python/stormscript ~/.stormscript | ||
stormscript finished.sts | ||
exec bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
sudo rm /usr/bin/stormscript | ||
sudo rm -rf $HOME/.stormscript | ||
echo StormScript Removed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Building StormScript | ||
|
||
Make a directory called build | ||
|
||
You must have gcc installed (MinGW for Windows) and CMake | ||
|
||
## Linux | ||
|
||
Terminal: | ||
|
||
To build StormScript clone this repository and cd into it. Run | ||
``` | ||
$ cmake CMakeLists.txt | ||
``` | ||
and | ||
``` | ||
$ make | ||
``` | ||
You can then add it to path or install it to /usr/bin. | ||
|
||
## Windows | ||
|
||
Make sure you have MinGW-make installed | ||
|
||
Run CMake GUI, and configure for MinGW-make | ||
|
||
output should be a MakeFile, run mingw-make in that directory. | ||
|
||
## Visual Studio Code | ||
|
||
Clone this repository like before and open it in Visual Studio Code. Make sure you have the CMake, C++, and python plugins installed. Press `Build:` in the bottom left or press `f5` to start debugging. | ||
|
||
When it builds, it should be put into a `build/` directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# StormScript v0.5.0 "Eggplant" | ||
|
||
## What's New | ||
* `while` can be used to make while loops | ||
* New Escape Characters, `\t` and `\\` | ||
* Windows version | ||
* Modules have been removed due to compatibility issues | ||
* Libraries have been removed due to compatibility issues | ||
* New scripts folder for build scripts | ||
|
||
## What's Fixed | ||
* `runtests.sh` will now exit with code 1 on failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
do{ | ||
x: 4; | ||
printl "Hello, World!"; | ||
|
||
if x is 3 { | ||
printl "hi"; | ||
}else if x is 4 { | ||
printl "hi there"; | ||
}else { | ||
printl "bye"; | ||
x: 3; | ||
y: 10; | ||
while x not y { | ||
x+: 1; | ||
printl x; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
cd .. | ||
cmake CMakeLists.txt | ||
make | ||
install stormscript build/stormscript | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.