A remake of SigmaGreg.
- Variables
- Functions (new, expect bugs)
- If statements
- Typing for variables (new, expect bugs)
- While loops (new, expect bugs)
- For loops (new, expect bugs)
- With statements (new, needs to be fixed)
- Input
- Output (ass)
- Comments
- Error handling
- Move to-do items to individual GitHub issues
- Python modules
- Every freaking thing
Just look at this!!!
import requests
import sgcm
import webbrowser
var url = "https://dog.ceo/api/breeds/image/random"
var request = requests.get(url)
if (request.status_code == 200):
var json = request.json()
var pretty = sgcm.prettyPrint(json)
gPrintln(pretty)
if ("message" in json):
var w = gReadln("do you want to open image in browser? \p1y or n\p2: ")
if (w.lower() == "y"):
var image = json["message"]
webbrowser.open(image)
elif (w.lower() == "n"):
gPrintln("ok...")
else:
gPrintln("what")
else:
gPrintln("error")
WAY better than SigmaGreg's syntax..
credit_number:
ssn:
credit_num_back:
gregPr "I need your credit card number to make sure you not hacked\n"
gregIn credit_number
gregPr "Thank you, now I need your social security to make sure to identity fraud\n"
gregIn ssn
gregPr "thank you, now I need 3 number on back to make sure your bank account safe\n"
gregIn credit_num_back
gregPr f"Ok so I have {credit_number}, {ssn}, and {credit_num_back}\n"
gregPr "ghahahaha you have been hacked hahgahgahah"
First of all:
- SigmaGreg had bad syntax, you could barely do anything and there were so many things that was bad about it. SGC++ will fix all of that.
- Nicer looking keywords (eg:
gPrintln()
) unlike the original SigmaGreg Code (eg:gregPr
) - Not as buggy!!!
gPrintln() is how you would print, just like
gregPr
.
gReadln() is how you take input. It's the exact same as
gregIn
2024-2025 Freakybob-Team. Everything is licensed under MIT.
THIS IS VERY NEW. EXPECT BUGS.