Logo-small

4.4.11 Parsing

Q Which packages should I load from http://www.squeaksource.com/SmaccDevelopment.html to write parsers?
A Load "AST", "Refactoring-Core", "SmaCC" and "SmaCCDev"
ScriptLoader loadLatestPackage: 'AST' from: 'http://www.squeaksource.com/AST'.
ScriptLoader loadLatestPackage: 'Refactoring-Core' from: 'http://www.squeaksource.com/RefactoringEngine'.
ScriptLoader loadLatestPackage: 'SmaCC' from: 'http://www.squeaksource.com/SmaccDevelopment'.
ScriptLoader loadLatestPackage: 'SmaCCDev' from: 'http://www.squeaksource.com/SmaccDevelopment'.

Make sure that "SmaCC" is up-to-date first! NB: The first two are already in the Pharo-dev images. Warning: "SmaCC-Development" is for Squeak 3.8 — don’t use it

Q How do I run SmaCC?
A Just load "SmaCCDev" and it will start up — it will also be loaded into the menu.
Q "SmaCC" pops up an annoying "silence not found in the Sound library" when I click on the tabs — how do I get it to stop?
A Edit SampledSound class>>soundNamed: and comment out the self inform:
Q How do I generate a view of the "AST" of an expression?
A
(RBParser parseExpression: '3+4') explore [explore it]

Add a Note

Licensed under Creative Commons BY-NC-SA | Published using Pier |