M30W Programming Forum

M30W is a text-based version of Scratch

You are not logged in.

Announcement

This is the development forum for M30W (also known as Emerald, do not confuse with Emerald Programming Language).
Our Non-development forums are available here

M30W(Emerald) 0.3 is out! (Download) Requires Python 2.6 or higher.
Opal 0.3(A better command line M30W) is out! (Download) Requires Python 2.6 or higher.
M30W 0.3.6 GUI barebones (Download) Requires Python 2.6 or higher and wxPython
Diamond-2 RED2 GUI Barebones (Fancy M30W editor) s out! (Download) Requires .NET Framework 3.5 or higher, does not require Python
M30W++ GUI barebones (Java M30W) Alpha 1 is out! (Download) Requires Java.


Gershmer.net, our hosting, will close in February 2011. We have not fully decided what to do with our hosting after that, but we will tell you when we decide.

Adverts

Adverts

#1 2010-07-01 20:31:19

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Enough!

Ok, lets do some proper work, enough of the games.
Lets start working on the compiler, take a look at some others first, then replicate it to work with M30W, lets just use some basic commands to start with.
I suggest:

Code:

Change X by ()
Change Y by ()
Set X to ()
Set Y to ()

But because I don't think it'd be a good idea to have the code libary part of the program, so we need to use something to include the code libaries, like the C# way

Code:

using (Then the file, e.g. system or a header)

This will make M30W easier to expand.
Now, lets go!

This will have to be a 2 step piece, 1st step, it takes the code and compiles it, 2nd step it relays that back to M30W which then moes the sprites around etc.

Though what we could do is also have an option which converts it into a fully fledged program, an exe or perhaps a .py file if thats possible. Making M30W truely crossplatform.


I am A M30Wr.
I always get the last word.

Offline

 

2010-07-01 20:31:19

AdBot
Advertisements

#2 2010-07-01 21:24:51

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

Should broadcasts be like in Javascript?

Code:

broadcast()

or

Code:

broadcast[broadcast]

http://card.ly/images/vcard-green-small.png

Offline

 

#3 2010-07-02 08:05:04

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

Gershmer wrote:

Should broadcasts be like in Javascript?

Code:

broadcast()

or

Code:

broadcast[broadcast]

Broadcasts such as

Code:

Console.Writeline("Hello World")

Is that what you mean? Methods.
If thats what you mean then thats what Change X by () will be, maybe squish it? Or have M30W able to execute methods that have spaces in their name.

Code:

(squished)
ChangeXby()

(Underscore)
Change_X_by()

Had another idea actualy:

how about:

Code:

M30w.movement.Change_X_by()

Or is that a bit advanced?


I am A M30Wr.
I always get the last word.

Offline

 

#4 2010-07-02 11:01:33

bendad
M30W Computer Geek
From: A Place....
Registered: 2010-01-23
Posts: 162
Website

Re: Enough!

How about this:

Code:

Sprite2.Broadcast[broadcast_name]

Should the broadcast_name be in () or []? The "Sprite2" at the beginning could be changed to any sprite's name or "all".

Code:

When broadcast_name received:
       (code)
       end

What do you think?


http://bendad.dragonadopters.com/dragonanimated_433188.gif "Fate protects fools, little children and ships named Enterprise" -- Commander Riker

I'm sorry that I am copying Filo5's old signature, but it is very awesome. As they say, imitation is the highest form of flattery.

Offline

 

#5 2010-07-02 13:06:42

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

markyparky56 wrote:

Gershmer wrote:

Should broadcasts be like in Javascript?

Code:

broadcast()

or

Broadcasts such as

Code:

Console.Writeline("Hello World")

Is that what you mean? Methods.

No I mean like this:

Code:

name_of_broadcast()

Parentheses empty. Just like a super-basic JS function.


http://card.ly/images/vcard-green-small.png

Offline

 

#6 2010-07-02 13:37:57

cds56
THE TOOOTH! THE TOOOOOOOOOOOOTH!!!!!
From: Canamadiana
Registered: 2009-11-07
Posts: 423

Re: Enough!

Gershmer wrote:

markyparky56 wrote:

Gershmer wrote:

Should broadcasts be like in Javascript?

Code:

broadcast()

or

Broadcasts such as

Code:

Console.Writeline("Hello World")

Is that what you mean? Methods.

No I mean like this:

Code:

name_of_broadcast()

Parentheses empty. Just like a super-basic JS function.

Yes, the super basic is the way to go.


http://www.catb.org/esr/faqs/glider.png

Offline

 

#7 2010-07-02 17:28:26

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

But does it feel to much like Javascript if we do it that way?


http://card.ly/images/vcard-green-small.png

Offline

 

#8 2010-07-02 18:07:44

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

Ok, I think we should go for (), though [] is easier to write.
I geuss M30W should be OO, so using the sprites as objects is a better idea,
Im not sure about the broadcasts, is it really needed to be discussed now and not after we have a working compiler to play with?

http://compilers.iecc.com/crenshaw/
How to write a compiler. ;) Step by step guide on how to write one. Enjoy.


I am A M30Wr.
I always get the last word.

Offline

 

#9 2010-07-05 12:37:14

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

bump.


I am A M30Wr.
I always get the last word.

Offline

 

#10 2010-07-06 10:57:33

cds56
THE TOOOTH! THE TOOOOOOOOOOOOTH!!!!!
From: Canamadiana
Registered: 2009-11-07
Posts: 423

Re: Enough!

markyparky56 wrote:

bump.

@ your above post!

How did you find out how to write a compiler on the internet?!?!

I've never been able to find those pages!

thanks..


http://www.catb.org/esr/faqs/glider.png

Offline

 

#11 2010-07-06 11:00:17

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

cds56 wrote:

markyparky56 wrote:

bump.

@ your above post!

How did you find out how to write a compiler on the internet?!?!

I've never been able to find those pages!

thanks..

Uhh... I search: How to write a compiler... http://www.google.com/#q=how+to+write+a+compiler

Last edited by Gershmer (2010-07-09 21:08:53)


I am A M30Wr.
I always get the last word.

Offline

 

#12 2010-07-09 19:47:20

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

huh-bump!


I am A M30Wr.
I always get the last word.

Offline

 

#13 2010-07-11 13:09:26

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

:mad: Come on people! Lets get some work done!


I am A M30Wr.
I always get the last word.

Offline

 

#14 2010-07-12 10:35:40

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

Oh, and by the way, I'm in the middle of the term holidays, and I've made significant progress with the interpreter.


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#15 2010-07-12 14:24:19

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

floppy_gunk wrote:

Oh, and by the way, I'm in the middle of the term holidays, and I've made significant progress with the interpreter.

Goooood... goooood... how does it work?


I am A M30Wr.
I always get the last word.

Offline

 

#16 2010-07-12 21:00:54

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

floppy_gunk wrote:

I've made significant progress with the interpreter.

1. In Python, still?
2. Following at least SOME of our syntax specifications?
3. Works (at all, even minimally)?


http://card.ly/images/vcard-green-small.png

Offline

 

#17 2010-07-13 05:45:15

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

Gershmer wrote:

1. In Python, still?
2. Following at least SOME of our syntax specifications?
3. Works (at all, even minimally)?

1. Yes
2. Almost
3. Yes


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#18 2010-07-13 11:22:38

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

floppy_gunk wrote:

Gershmer wrote:

1. In Python, still?
2. Following at least SOME of our syntax specifications?
3. Works (at all, even minimally)?

1. Yes
2. Almost
3. Yes

Almost? Either it does or it doesn't.


I am A M30Wr.
I always get the last word.

Offline

 

#19 2010-07-13 21:50:23

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

markyparky56 wrote:

floppy_gunk wrote:

Gershmer wrote:

1. In Python, still?
2. Following at least SOME of our syntax specifications?
3. Works (at all, even minimally)?

1. Yes
2. Almost
3. Yes

Almost? Either it does or it doesn't.

Ok, it doesn't yet.


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#20 2010-07-14 11:39:39

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

floppy_gunk wrote:

markyparky56 wrote:

floppy_gunk wrote:


1. Yes
2. Almost
3. Yes

Almost? Either it does or it doesn't.

Ok, it doesn't yet.

Then what does it do? An example of how the syntax is currently.


I am A M30Wr.
I always get the last word.

Offline

 

#21 2010-07-16 11:44:59

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

Come on guys, I know its the holidays (For most of us atleast) but can you get some work done, I'm going on a break for a 8 days, so by the time I get back I expect to see some work done! Caphice?


I am A M30Wr.
I always get the last word.

Offline

 

#22 2010-07-18 08:59:42

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

I've got good news and bad news.

Good news: I've finished the syntax! YES!!

Bad news: The file somehow got deleted from my computer. :(

Just kidding. The bad news is that school is starting up again. :(


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#23 2010-07-19 18:24:47

cds56
THE TOOOTH! THE TOOOOOOOOOOOOTH!!!!!
From: Canamadiana
Registered: 2009-11-07
Posts: 423

Re: Enough!

floppy_gunk wrote:

I've got good news and bad news.

Good news: I've finished the syntax! YES!!

Bad news: The file somehow got deleted from my computer. :(

Just kidding. The bad news is that school is starting up again. :(

Really? My school just finished 3 weeks ago.

:D

ur unlucky D:


http://www.catb.org/esr/faqs/glider.png

Offline

 

#24 2010-07-20 06:53:40

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

cds56 wrote:

Really? My school just finished 3 weeks ago.

Finished 3 weeks ago? I'm only halfway through the school year! :o


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#25 2010-07-21 00:04:16

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

floppy_gunk wrote:

cds56 wrote:

Really? My school just finished 3 weeks ago.

Finished 3 weeks ago? I'm only halfway through the school year! :o

oh... I get it ... southern hemisphere huh?

Northern Hemisphere = August-May or Sept-June
Southern Hemisphere = February-November or March-December


http://card.ly/images/vcard-green-small.png

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting