Mub v2.1.0, the language made with python.
Mub is a programming language made with python.
If you prefer easy languages, you can do
Go ahead and fork it, I want to see what things you guys will make :)
Fork the repl and go to main.mub.
sys.out('string'); - print string sys.read('string'); - get input and text shown is string // - comment var.set('string') - set a value inside a variable (string) var.get(); - get a variable value write.txt(); - write a new file add [pkg name]; - Adds a package. (Without )
add easymub; sys.out('This is the power of mub!'); //sys.out('Mub v1 is cooler'); sys.out('Mub v2 is way cooler with multi lines!'); read('so cool'); sys.read('i know right?');
Copy and paste that into main.mub!
You can only use
' (single quotes) to wrap around a string. Double quotes are coming soon.
MatthewWithProSkills - Helped with multi lines
Code1Tech - Made the entire thing
Sources are the source code of mub, basically the code behind it. Or in other words, a folder containing the backend. You want to open
main.mub and I don't know what you mean by
and how do you get it so you can make it.<codename> and still work?. Please describe better and I may be able to answer your questions!
You can just rename it to main.mub, and if you want to know how I run it then look inside the sources folder and open
mub.py. I import the
mub.py from the folder, I run the script in
main.py, and it reads
main.mub and gives output.
If your new to python, the code behind mub isn't for you, you don't have to understand how I made it, just use it to make programs! Open
main.mub and look at the top for things you can do.
Yes, beacuse you have to code it to do whatever. What I did was
f = open("main.mub", "r") read = f.read() if 'sayhello' in read: print('hello')
It's kinda like that.
It doesn't execute like that, you have to code it with your own hard work. Also, this isn't a tutorial on opening files, this is a template on
mub which is my programming language. Please google if you are still having trouble.
And you are supposed to fork and write code in
main.mub, not learn to open files using python. If you want to do that then post a question on
ask or google yourself.