Skip to content

A small, opinionated pretty printer for Squeak/Smalltalk (SWT22-02)

License

Notifications You must be signed in to change notification settings

hpi-swa-teaching/poppy-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poppy Print

CI Coverage Status

A small, opinionated pretty printer for Squeak/Smalltalk. Tested with Squeak6-trunk and Squeak5.3.

NOTE: this is a beta release. The printer may accidentally produce malformed code at this point. Please report any misbehavior you notice.

Install

Metacello new baseline: 'PoppyPrint'; repository: 'github://tom95/poppy-print/packages'; load.

If you want to use Poppy Print instead of the default pretty printer, run:

Behavior compile: 'prettyPrinterClass ^ PPFormatter'.
" undo: "
Behavior compile: 'prettyPrinterClass ^ self compilerClass'.

Example

PPFormatter formatPackage: 'PoppyPrint'.
PPFormatter formatMethod: PoppyPrint >> #initialize.

If you find any methods that don't format well, please open a Github issue or contribute a test case.

About

A small, opinionated pretty printer for Squeak/Smalltalk (SWT22-02)

Resources

License

Stars

Watchers

Forks

Packages

No packages published