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

#1 2012-05-04 05:55:39

hachachin
New Scratcher
Registered: 2012-05-04
Posts: 2

Scratch's language AST

Hi everybody !

Is it possible to retrieve an AST from a Scratch script ?

Thanx in advance

Offline

 

#2 2012-05-04 06:23:41

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Scratch's language AST

What's an AST?  hmm

Offline

 

#3 2012-05-04 08:18:33

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Scratch's language AST

scimonster wrote:

What's an AST?  hmm

Is it this?


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-05-04 15:39:14

hachachin
New Scratcher
Registered: 2012-05-04
Posts: 2

Re: Scratch's language AST

Yes, an abstract syntax tree.

Offline

 

#5 2012-05-04 15:41:31

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch's language AST

I think you'd have to write it yourself or write a program that uses Kurt (a Python library that can parse the Scratch binary file) to write one for you after parsing scripts.


Posts: 20000 - Show all posts

Offline

 

Board footer