i’ve downloaded the source code of scratch, written in squeak smalltalk. can browse source in squeak, want big text file. image based on squeak 2.8.
i’m total squeak newbie. far, i’m loving it, , impression of language , environment dumping source code in image file can done in 3 lines of code, if knew way around better. can supply 3 lines of code?
i won’t complain if ends being 4 lines (or more likely, 1 line).
untested, but:
smalltalk allclasses do: [:each | each fileout]
this should dump 3 million .st files, named after each class in system.
welcome , happy smalltalking!
edit: seems, wouldn't work in squeaks, i've been testing around , looks following should work in scratch source code image:
systemorganization categories do: [:each | systemorganization fileoutcategory: each]
Comments
Post a Comment