Software Open Access

Polite Smalltalk - An Implementation

Kurš, Jan; Lungu, Mircea; Nierstrasz, Oscar; Steinmann, Thomas


Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:creator>Kurš, Jan</dc:creator>
  <dc:creator>Lungu, Mircea</dc:creator>
  <dc:creator>Nierstrasz, Oscar</dc:creator>
  <dc:creator>Steinmann, Thomas</dc:creator>
  <dc:date>2016-09-05</dc:date>
  <dc:description>Polite Smalltalk is a programming language that allows programmers to use sentence case identifiers -- a notation for embedding spaces in identifiers. We hope  that a syntax like that of Polite will encourage developers to write more readable code. Even the smallest increase in code readability is to be desired since software developers spend the largest part of their time reading code rather than writing it.

In order to replace identifiers with sentences, we need to make sure that our language grammar allows the code to be parsed unambiguously. This is why the implementation published here starts from a Smalltalk-like syntax defined with parsing expression grammars and modifies it to add two desired features:
1) sentence case identifiers, and
2) indentation based method definitions. 

Polite is implemented on top of Pharo Smalltalk and PetitParser is used to define its grammar. 

The uploaded files represent a Pharo image together with three Pharo virtual machines for the dominant operating systems. To open the image execute the corresponding virtual machine and load Polite.image in it. You will need to have the PharoV50.sources (the fifth file) in the same directory as the image.

Inside the image, the Polite implementation can be found in the PoliteSmalltalk package. The package contains more than 450 passing unit tests. The image also contains a small role playing game simulator that illustrates the syntax of Polite. 

For the latest news on Polite Smalltalk, check out http://scg.unibe.ch/research/Polite and https://github.com/mircealungu/polite/</dc:description>
  <dc:identifier>https://zenodo.org/record/61578</dc:identifier>
  <dc:identifier>10.5281/zenodo.61578</dc:identifier>
  <dc:identifier>oai:zenodo.org:61578</dc:identifier>
  <dc:rights>info:eu-repo/semantics/openAccess</dc:rights>
  <dc:rights>https://creativecommons.org/publicdomain/zero/1.0/</dc:rights>
  <dc:subject>programming languages</dc:subject>
  <dc:subject>human centered language design</dc:subject>
  <dc:title>Polite Smalltalk - An Implementation</dc:title>
  <dc:type>info:eu-repo/semantics/other</dc:type>
  <dc:type>software</dc:type>
</oai_dc:dc>

Share

Cite as