This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-12-09 19:27:24

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Who wants to make a programming language in Python?

^title
It seems like it wouldn't be too hard. It could read from files, which you would select from a command line. I don't know what to name it. It will use Python 3, so upgrade to 3 if you want to join.

Offline

 

#2 2011-12-09 20:21:12

Codebreaker
Scratcher
Registered: 2011-10-03
Posts: 100+

Re: Who wants to make a programming language in Python?

This doesn't really belong in Scratch...


Latest project: Pixelation/Upcoming project(s): M.A.Z.E Runner

Offline

 

#3 2011-12-09 20:22:57

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

Codebreaker wrote:

This doesn't really belong in Scratch...

It's a collaboration. They are allowed for other languages.

Offline

 

#4 2011-12-09 20:34:06

maxdoss
Scratcher
Registered: 2010-07-27
Posts: 1000+

Re: Who wants to make a programming language in Python?

I would join if I had Python.


It's my birthday. Deal with it.

Offline

 

#5 2011-12-09 20:35:16

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

maxdoss wrote:

I would join if I had Python.

You can get it free here.

Offline

 

#6 2011-12-09 20:52:43

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Who wants to make a programming language in Python?

Let's try this in Advanced Topics...I think that might be a better fit.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#7 2011-12-09 21:41:00

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

I started a language class, so it can easily be implemented into an interpreter or interactive mode.

Offline

 

#8 2011-12-10 00:15:44

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Who wants to make a programming language in Python?

http://scratch.mit.edu/forums/viewtopic.php?id=22543 (Old Attempt). Out of curiosity, how do you plan on making the GUI?

Last edited by Magnie (2011-12-10 00:16:04)

Offline

 

#9 2011-12-10 04:42:43

markallenit
New Scratcher
Registered: 2011-11-30
Posts: 2

Re: Who wants to make a programming language in Python?

Python programming language has been more security. So most of the website owners are interested to develop their web site in python

Offline

 

#10 2011-12-10 20:44:20

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Who wants to make a programming language in Python?

I am interested in helping if you decide to use 2.7 instead.

Offline

 

#11 2011-12-10 22:43:04

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Who wants to make a programming language in Python?

Magnie wrote:

I am interested in helping if you decide to use 2.7 instead.

+1


Fork Clamor on GitHub!

Offline

 

#12 2011-12-11 09:19:24

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

Magnie wrote:

http://scratch.mit.edu/forums/viewtopic.php?id=22543 (Old Attempt). Out of curiosity, how do you plan on making the GUI?

tkinter, probably. A GUI won't be priority.

Offline

 

#13 2011-12-11 09:24:09

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

ohaiderstudios wrote:

Magnie wrote:

I am interested in helping if you decide to use 2.7 instead.

+1

Sorry guys, I find 3.2 easier because of little things like input instead of raw_input.

Offline

 

#14 2011-12-12 10:45:36

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Who wants to make a programming language in Python?

I just realized you want to make a programming language and not a clone of Scratch ( whoops  tongue  ). You should try asking in communities that use Python or communities that make programming languages. Most people on Scratch are new to programming and those who are moving on from Scratch are learning new languages.

Offline

 

#15 2011-12-12 12:34:39

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Who wants to make a programming language in Python?

Wow, thats sounds pretty difficult.  hmm


6418,

Offline

 

#16 2011-12-13 21:29:54

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Who wants to make a programming language in Python?

I could try... I was planning to upgrade to 3 anyway. I'm not sure how I would go about doing it though.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#17 2011-12-14 09:44:37

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Who wants to make a programming language in Python?

First I want to see your work, to make sure I'm not pulling your weight. Do you understand classes and functions? Do you know all of the operators? When is an elif necessary? I hope you know how to use tkinter. Otherwise we might be able to use easygui. Also I hope that you know how to package programs in .exe or .app files, because I don't.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#18 2011-12-14 16:27:43

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

nickbrickmaster wrote:

First I want to see your work, to make sure I'm not pulling your weight. Do you understand classes and functions? Do you know all of the operators? When is an elif necessary? I hope you know how to use tkinter. Otherwise we might be able to use easygui. Also I hope that you know how to package programs in .exe or .app files, because I don't.

You won't need to pull my weight, I get tkinter, get classes and functions, although I can't do EXEs.

Offline

 

#19 2011-12-16 09:25:51

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Who wants to make a programming language in Python?

Okayz I'm working on Peppermint-InteractiveMode.
Working on variables at the moment.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#20 2011-12-16 13:53:52

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

nickbrickmaster wrote:

Okayz I'm working on Peppermint-InteractiveMode.
Working on variables at the moment.

I already started. let me upload first.

Offline

 

#21 2011-12-16 15:53:40

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Who wants to make a programming language in Python?

Here is the code:
Peppermint.py:

Code:

varnames = []
varvalues = []
exit = 0
while exit == 0:
    user_input = input("Peppermint> ").split()
    if user_input[0] == "var":
        file = open(user_input[0] + ".txt")
        todo = ''
        for i in file.readlines():
            todo += i
        file.close()
        exec(todo)
    else:
        for i in user_input:
            for d in varnames:
                if i == d:
                    indx=user_input.index(i)
                    user_input.remove(i)
                    user_input.insert(indx, varvalues[varnames.index(d)]) 
        try:
            file = open(user_input[0] + ".txt")
        except IOError:
            print("No Peppermint command called " + user_input[0])
        else:
            todo = ''
            for i in file.readlines():
                todo += i
            exec(todo)    
            file.close()

output.txt:

Code:

whattoprint = []
for d in user_input:
    if d != 'output':
        whattoprint.append(d)
for d in whattoprint:
    print(d, end = ' ')
print('\n')

var.txt:

Code:

newvarname = user_input[1]
newvarvalue = user_input[2]
varnames.append(newvarname)
varvalues.append(newvarvalue)

exit.txt:

Code:

exit = 1

Put these all in the same folder and run Peppermint.py.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#22 2011-12-16 16:26:01

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

nickbrickmaster wrote:

Here is the code:
Peppermint.py:

Code:

varnames = []
varvalues = []
exit = 0
while exit == 0:
    user_input = input("Peppermint> ").split()
    if user_input[0] == "var":
        file = open(user_input[0] + ".txt")
        todo = ''
        for i in file.readlines():
            todo += i
        file.close()
        exec(todo)
    else:
        for i in user_input:
            for d in varnames:
                if i == d:
                    indx=user_input.index(i)
                    user_input.remove(i)
                    user_input.insert(indx, varvalues[varnames.index(d)]) 
        try:
            file = open(user_input[0] + ".txt")
        except IOError:
            print("No Peppermint command called " + user_input[0])
        else:
            todo = ''
            for i in file.readlines():
                todo += i
            exec(todo)    
            file.close()

output.txt:

Code:

whattoprint = []
for d in user_input:
    if d != 'output':
        whattoprint.append(d)
for d in whattoprint:
    print(d, end = ' ')
print('\n')

var.txt:

Code:

newvarname = user_input[1]
newvarvalue = user_input[2]
varnames.append(newvarname)
varvalues.append(newvarvalue)

exit.txt:

Code:

exit = 1

Put these all in the same folder and run Peppermint.py.

I tried to tell you. If you can't follow instructions, you can't be in this. Anyway, we didn't agree on Peppermint as the name.

Offline

 

#23 2011-12-16 16:45:53

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Who wants to make a programming language in Python?

samtwheels wrote:

nickbrickmaster wrote:

Here is the code:
Peppermint.py:

Code:

varnames = []
varvalues = []
exit = 0
while exit == 0:
    user_input = input("Peppermint> ").split()
    if user_input[0] == "var":
        file = open(user_input[0] + ".txt")
        todo = ''
        for i in file.readlines():
            todo += i
        file.close()
        exec(todo)
    else:
        for i in user_input:
            for d in varnames:
                if i == d:
                    indx=user_input.index(i)
                    user_input.remove(i)
                    user_input.insert(indx, varvalues[varnames.index(d)]) 
        try:
            file = open(user_input[0] + ".txt")
        except IOError:
            print("No Peppermint command called " + user_input[0])
        else:
            todo = ''
            for i in file.readlines():
                todo += i
            exec(todo)    
            file.close()

output.txt:

Code:

whattoprint = []
for d in user_input:
    if d != 'output':
        whattoprint.append(d)
for d in whattoprint:
    print(d, end = ' ')
print('\n')

var.txt:

Code:

newvarname = user_input[1]
newvarvalue = user_input[2]
varnames.append(newvarname)
varvalues.append(newvarvalue)

exit.txt:

Code:

exit = 1

Put these all in the same folder and run Peppermint.py.

I tried to tell you. If you can't follow instructions, you can't be in this. Anyway, we didn't agree on Peppermint as the name.

1. This is a collab. You are not giving me instructions.
2. I just wanted to show you what I had.
3. Fine then. It doesn't have to be Peppermint. You never said anything else.
4. Good luck finding someone else to do it.

Last edited by nickbrickmaster (2011-12-16 16:47:46)


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#24 2011-12-17 00:00:01

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Who wants to make a programming language in Python?

nickbrickmaster wrote:

samtwheels wrote:

nickbrickmaster wrote:

Here is the code:
Peppermint.py:

Code:

varnames = []
varvalues = []
exit = 0
while exit == 0:
    user_input = input("Peppermint> ").split()
    if user_input[0] == "var":
        file = open(user_input[0] + ".txt")
        todo = ''
        for i in file.readlines():
            todo += i
        file.close()
        exec(todo)
    else:
        for i in user_input:
            for d in varnames:
                if i == d:
                    indx=user_input.index(i)
                    user_input.remove(i)
                    user_input.insert(indx, varvalues[varnames.index(d)]) 
        try:
            file = open(user_input[0] + ".txt")
        except IOError:
            print("No Peppermint command called " + user_input[0])
        else:
            todo = ''
            for i in file.readlines():
                todo += i
            exec(todo)    
            file.close()

output.txt:

Code:

whattoprint = []
for d in user_input:
    if d != 'output':
        whattoprint.append(d)
for d in whattoprint:
    print(d, end = ' ')
print('\n')

var.txt:

Code:

newvarname = user_input[1]
newvarvalue = user_input[2]
varnames.append(newvarname)
varvalues.append(newvarvalue)

exit.txt:

Code:

exit = 1

Put these all in the same folder and run Peppermint.py.

I tried to tell you. If you can't follow instructions, you can't be in this. Anyway, we didn't agree on Peppermint as the name.

1. This is a collab. You are not giving me instructions.
2. I just wanted to show you what I had.
3. Fine then. It doesn't have to be Peppermint. You never said anything else.
4. Good luck finding someone else to do it.

1. I am the leader of this collab.
2. I wanted to finish mine first.
3. We should agree on a name.
4. I don't need anyone else. I have decided to do this on my own, considering that you cannot comply.

Offline

 

#25 2011-12-17 02:36:44

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Who wants to make a programming language in Python?

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer