The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk grammar

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk grammar Posted: Jan 14, 2009 11:51 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk grammar
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

Late last night I feverishly entered the Smalltalk BNF as a PEG in to my shiny new parser tech to try it out. The BNF does not include any whitespace, since it assumes whitespace between tokens. PEG requires that you specify the whitespace.

As a result, my parser works but does not expect any whitespace, which forced me to conjure up some peculiar looking, but completely valid, smalltalk methods. I found them mildly amusing, so I thought I'd share them with you:

he||0

smalltalk#klatllams

eulav[]value

smalltalk[||]klatllams

self^self

Read: Smalltalk grammar

Topic: Sling going down? Previous Topic   Next Topic Topic: Virtual Actors?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use