13.6: Regular Expressions and Parsing
- Page ID
- 39553
FAQ \(\PageIndex{1}\)
How can I work with regular expressions?
Answer
Load Vassili Bykov’s RegEx package from: www.squeaksource.com/Regex.html
FAQ \(\PageIndex{2}\)
Where is the documentation for the RegEx package?
Answer
Look at the DOCUMENTATION
protocol of RxParser
class in the VB-Regex
category.
FAQ \(\PageIndex{3}\)
Are there tools for writing parsers?
Answer
Use SmaCC —the Smalltalk Compiler Compiler. You should install at least SmaCC-lr.13. Load it from www.squeaksource.com/SmaccDevelopment.html. There is a nice tutorial online: www.refactory.com/Software/SmaCC/Tutorial.html.
FAQ \(\PageIndex{4}\)
Which packages should I load from SqueakSource SmaccDevelopment to write parsers?
Answer
Load the latest version of SmaCCDev — the runtime is already there. (SmaCC-Development is for Squeak 3.8)