[squeak-dev] [ANN] Like, Python? Like, Squeak!

Andreas Raab andreas.raab at gmx.de
Wed Feb 24 21:47:30 UTC 2010


Folks -

I just came across this amazing bit of modern language design:

    http://www.staringispolite.com/likepython/

And I just couldn't stop myself. I am happy to announce Like, Squeak the 
modern version of the Squeak language! Just as in Like, Python you will 
write your code, like, in a style culturally appropriate for teh 21st 
century. Let's give it a shot, bro:

   ok so fields := #(1 2 3) ah collect:[: omg aNumber|
     aNumber reciprocal dude yeah
   ].
   yo Transcript just friggin show: da fields toootally reversed

Can you imagine the productivity boost? You just write it just the way 
you'd spell it! Like, Squeak opens completely new directions for any 
serious Squeak developer.

Here is a full list of Like, Squeak keywords (which looks awfully 
similar to the Like, Python keywords):

* Valleygirl: omg, so, like, totally, right, toootally
* Frat guy: friggin, fuckin, dude, man, bro, broheim, broseph
* Internets: lol, rofl, teh, ohai, plz
* Snoop: yo, homey, homeboy, sup, dog, shit, girl, ma, biatch, ho, shiiit
* Local: wicked, hella, anyways
* Misc: just, hey, yeah, ok, um, uh, ah, actually, something

Surely, this will open the door to lots of new users trying out Squeak!

Cheers,
   - Andreas
-------------- next part --------------
'From Squeak3.11alpha of 24 February 2010 [latest update: #9440] on 24 February 2010 at 10:37:31 pm'!
Parser subclass: #LikeParser
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Compiler-Kernel'!

!Compiler class methodsFor: 'accessing' stamp: 'ar 2/24/2010 22:14'!
parserClass
	"Answer a parser class to use for parsing methods compiled by instances of the receiver."

	^LikeParser! !


!LikeParser methodsFor: 'scanning' stamp: 'ar 2/24/2010 22:18'!
scanToken
	| this |
	this := super scanToken.
	Sensor leftShiftDown ifTrue:[^this].
	[#(
		"Valleygirl"	'omg' 'so' 'like' 'totally' 'right' 'toootally' 
		"Frat guy" 	'friggin' 'fuckin' 'dude' 'man' 'bro' 'broheim' 'broseph' 
		"Internets" 	'lol' 'rofl' 'teh' 'ohai' 'plz' 
		"Snoop"	'yo' 'homey' 'homeboy' 'sup' 'dog' 'girl' 'ma' 'biatch' 'ho' 'shit' 'shiiit' 
		"Local" 		'wicked' 'hella' 'anyways' 
		"Misc" 		'just' 'hey' 'yeah' 'ok' 'um' 'uh' 'ah' 'actually' 'something' 'the' 'da'
	) includes: token] whileTrue:[super scanToken].
	^this! !


More information about the Squeak-dev mailing list