Clone wiki

stx:goodies/petitparser / Installation

Installation

Smalltalk/X jv-branch

Smalltalk/X jv-branch contains the recent version of PetitParser and PetitCompiler. However, if you'd like to develop PetitParser or PetitCompiler, then:

1. Clone the repository to your package path (say ~/SmalltalkXProjects):

mkdir -p ~/SmalltalkXProjects/stx/goodies
hg clone https://bitbucket.org/janvrany/stx-goodies-petitparser ~/SmalltalkXProjects/stx/goodies/petitparser

2. Load packages into Smalltalk/X:

Smalltalk loadPackage: 'stx:goodies/petitparser'.
Smalltalk loadPackage: 'stx:goodies/petitparser/compiler'.

NOTE: Please that this version of PetitParser may or may not work in eXept's Smalltalk/X 6.2.2

Pharo 4.0 & 5.0

See loading instructions at Pharo's version of PetitParser / PetitCompiler at SmalltalkHub

In short:

Gofer new smalltalkhubUser: 'JanKurs' project: 'PetitParser';
    configurationOf: #PetitCompiler; load.
(Smalltalk at: #ConfigurationOfPetitCompiler) perform: #'loadStable'.

Updated