Introduction: How to Make a Programming Language in Python
Ever wanted to make a programming language? But don't have C++, C# or VB? Use Python. It's really easy.
Step 1: Println
Let's use Easy as our languages name.
Now, let's make a 'println' command. It prints text on the screen.
Type this in:
def println(text):
print text
And test it.
Type this in in the Python Shell:
from easy import *
println('Hello')
And you will see 'Hello' on the screen.
Now, let's make a 'println' command. It prints text on the screen.
Type this in:
def println(text):
print text
And test it.
Type this in in the Python Shell:
from easy import *
println('Hello')
And you will see 'Hello' on the screen.
Step 2: StringName
Now let's make a command that does this: "anything = anything".
def stringName(string, name):
name = string
And test it too.
def stringName(string, name):
name = string
And test it too.
Step 3: List
Here's the code for making a list:
def list(name):
name = []
def list(name):
name = []
Step 4: Maybe Done...
Done! But you can also make new commands and more to the programming language.
Bye!
Bye!




