First off, I am 10 years old. Do not expect much.
Also, I KNOW this is not a coding language. I get it.
This also took me around a month to make. Hope you enjoy!
Ok, this is my first post and I put a lot of hard work into this. Inspyre is a object oriented coding language built off of Python 3. I built this coding language because I believe that Python could be more object-oriented, and I wanted to mix JS and Python together. Anyways, to make your OWN Inspyre project, (and maybe the first), go-to main.py and start coding!
How to use Inspyre
To use variables is the same as in Python. Don't know how?
Like in many other coding languages, you can assign a variable like this:
a = 32
b = 'Hello Python!'
Inspyre has a lot of integrated math functions. There are the standard ones, like add, sub, mul, div etc. But there are also mod and expon functions as well.
Inspyre has A LOT of random functions.
I can’t explain them all, but here is a list:
- randuni()<-- My personal favorite.
There are multiple assert functions in Inspyre like:
- GT Greater than
- SGT Strictly Greater than
- LT Less than
- SLT Strictly Less than
EQ Equal to
There are also quite a lot of logic gates:
5. The “console” class:
There are multiple functions for this as well, and color is also integrated.
- w() Log something to the console(print)
Whenever you want to change the text color, use this:
Color “hello world” red:
The color functions were made using colorama.
Dumping to a file:
Loading a file:
7.Stream (Work In Progress):
Stream will make a updateable stream that can be used to:
- Post Information
- Update users
- Log Things
- and Make Notifications.
Creates a stream with the title <title>.
If visible is “True”, it will print the stream.
Else, return None.
Update the stream with <text>.
Remove all posts with the key word <remove>.
If you like this post check out some of my other ones;
My try at an OS: (spoiler: I failed.) https://repl.it/talk/share/PythonOS/38320
Google text to speech tutorial:
Ball collecter game:
That’s all for now! If you would like to see a Part 2, where I cover more advanced things, comment! I might do so.
Bye! Stay Safe!
Ok, im just going to blatantly come out and say it
THIS IS NOT A PROGRAMMING LANGUAGE! it is just python with some classes!
Imagine I do this
output = print true = True false = False
...and say I made my own coding language. Thats what this is and I can't understand why these get so many upvotes. Not to be condescending but PLEASE PEOPLE acknowledge this.
@BobNeo This is just python, have you noticed how the syntax of this "language" is the EXACT SAME as python?
Thats because its just python except he defined classes.
I can handle not pointing out to people how effortless those effortless posts are, but since I make real languages with actual parsers, when someone comes and makes renamed python and people buy it I get real sick
@AmazingMech2418 My definition of a dialect is a language that inherits syntax from another but is different in some way
so if I made classes in python and import them, do I change the syntax of python?
I can only apologize for people thinking im "hating" by trying to get people to understand the difference between python and not python
Effort might be relative but things claiming to be something they aren't annoy me real fast
@CSharpIsGud Yes, this is Python, but Clojure is also Lisp, so why can't you consider this language an actual language? A language is really any set of functions with a syntax that can be used by a computer to do something which is what this does, so I consider it a language, although not entirely independent since it is really just a dialect (or maybe even quasi-dialect) of Python.
Like think about it from CSharps's perspective. He actually makes real languages, so think about how he feels when this post comes along. I know I would feel a bit mad too. I'm just saying look at another perspective. Maybe CSharp isn't being too mean.
Also age doesn't really matter, so please stop bringing up how the OP is 10 years old. Sure, that's great, but that's not an excuse.
But the thing I hate the most is how people actually think this is a real language, how misinformation spreads. I think that's the biggest problem here.
@CSharpIsGud I understand this but if you were 10 years old and made your own programming language you would be really proud of it, and you would go crying back to your room if someone posted a condescending message like you did so please accept the fact that this programmer is trying to make cool things and you are sitting at your desk wishing you had more hot pockets to shove in your mouth. And besides, you couldn’t do any better.
@LoganSpong I think its pretty cool that you made something that took 350 lines and 1 month to write. However, I think you have to understand why @CSharpIsGud is very frustrated. If you look on his profile, he also has some pretty impressive stuff. He feels that he should also be able to get as much recognition. Please correct me if I'm wrong, but I think that he is trying to say that effort is not necessarily ONLY how much time you spend, but also how much thought you put into it. Renaming existing functions doesn't necessarily capture the essence of writing a language, which is to process the text character by character (among MANY other things). Writing a parser is very different, and requires a lot more thought, just like how Guido van Rossum wrote Python! Being open to certain criticism is always good, especially since he wasn't trying to hurt your feelings on purpose. Good luck!