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

#1 2012-02-15 08:53:20

rehman182
New Scratcher
Registered: 2012-02-15
Posts: 3

working & design of scratch compiler

hi,
can anyone explain the design and working of scratch compiler. i am going to give presentation about scratch programming language. i have questions about the compiler of this language.

1- design of its compiler?
2- working of its compiler? how it actually works (a simple example will be helpful).
3- how its compiler different from other languages like C/C++ or any other language.
4- is it really a compiler or an interpreter?
5- concrete Examples about the working of compiler is really needed.

Thanks in advance.

Offline

 

#2 2012-02-15 09:09:08

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: working & design of scratch compiler

hi, scratch doesn't really get compiled in the same way as C and other languages since it has to be run in the scratch program itself,which is written in squeak!(smalltalk-80). i suppose the "compiling" could be saving scratch projects which you can find out more about here and here

and you can download the scratch source code to look through it yourself here

i know this probably isn't the answer that you were expecting but...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#3 2012-02-15 10:41:45

rehman182
New Scratcher
Registered: 2012-02-15
Posts: 3

Re: working & design of scratch compiler

thanks for the reply TRocket, i'll explore your links and come back if I've another question.

Offline

 

Board footer