Thank you Martin and Levente
The code copied in below worked in an updated trunk image (4.2-10892, Xtras removed, no FFI support loaded)
Besides http://code.google.com/p/xtreams/wiki/Parsing are there more examples how to use Peg parsing?
-- Hannes
Installer squeaksource project: 'Xtreams'; install: 'Xtreams-Support'; install: 'Xtreams-Core-'; install: 'Xtreams-Terminals-'; install: 'Xtreams-Transforms-'; install: 'Xtreams-Substreams-'; install: 'Xtreams-Parsing-'; " --- tests follow --- " install: 'Xtreams-CoreTests'; install: 'Xtreams-TerminalsTests'; install: 'Xtreams-TransformsTests'; install: 'Xtreams-SubstreamsTests'; install: 'Xtreams-ParsingTests'.
On 1/21/11, mkobetic@gmail.com mkobetic@gmail.com wrote:
Ah, thanks! I was just puzzling over that. I'll add that to the project page.
"Levente Uzonyi"leves@elte.hu wrote:
What is the Squeak equivalent of Gofer ? I could add the Squeak version to the page as well. In the worst case you can load the packages manually in the order that the Gofer snippet shows. You don't have to load all of them, you really need just the first five.
It's Installer. The following script should work:
Installer squeaksource project: 'Xtreams'; install: 'Xtreams-Support'; install: 'Xtreams-Core-'; install: 'Xtreams-Terminals-'; install: 'Xtreams-Transforms-'; install: 'Xtreams-Substreams-'; install: 'Xtreams-Parsing-'; " --- tests follow --- " install: 'Xtreams-CoreTests'; install: 'Xtreams-TerminalsTests'; install: 'Xtreams-TransformsTests'; install: 'Xtreams-SubstreamsTests'; install: 'Xtreams-ParsingTests'; " --- following require FFI --- " install: 'Xtreams-Xtras-'; install: 'Xtreams-XtrasTests'.
The - character at the end of the non-test packages is necessary, because Installer uses prefix matching and in case of 'Xtreams-Core' it would load
Xtreams-CoreTests, because that has a higher version number at the moment.
Levente
Cheers,
Martin