Software Open Access

# Polite Smalltalk - An Implementation

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

### DataCite XML Export

<?xml version='1.0' encoding='utf-8'?>
<identifier identifierType="DOI">10.5281/zenodo.61578</identifier>
<creators>
<creator>
<creatorName>Kurš, Jan</creatorName>
<affiliation>University of Bern</affiliation>
</creator>
<creator>
<creatorName>Lungu, Mircea</creatorName>
<affiliation>University of Groningen</affiliation>
</creator>
<creator>
<creatorName>Nierstrasz, Oscar</creatorName>
<affiliation>University of Bern</affiliation>
</creator>
<creator>
<creatorName>Steinmann, Thomas</creatorName>
<affiliation>University of Bern</affiliation>
</creator>
</creators>
<titles>
<title>Polite Smalltalk - An Implementation</title>
</titles>
<publisher>Zenodo</publisher>
<publicationYear>2016</publicationYear>
<subjects>
<subject>programming languages</subject>
<subject>human centered language design</subject>
</subjects>
<dates>
<date dateType="Issued">2016-09-05</date>
</dates>
<resourceType resourceTypeGeneral="Software"/>
<alternateIdentifiers>
<alternateIdentifier alternateIdentifierType="url">https://zenodo.org/record/61578</alternateIdentifier>
</alternateIdentifiers>
<rightsList>
<rights rightsURI="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons Zero - CC0 1.0</rights>
<rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
</rightsList>
<descriptions>
<description descriptionType="Abstract">&lt;p&gt;Polite Smalltalk is a programming language that allows programmers to use sentence case identifiers -- a notation for embedding spaces in identifiers. We hope &amp;nbsp;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.&lt;/p&gt;

&lt;p&gt;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:&lt;br /&gt;
1) sentence case identifiers, and&lt;br /&gt;
2) indentation based method definitions.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Polite is implemented on top of Pharo Smalltalk and PetitParser is used to define its grammar.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;For the latest news on Polite Smalltalk, check out http://scg.unibe.ch/research/Polite and https://github.com/mircealungu/polite/&lt;/p&gt;</description>
</descriptions>
</resource>