Here are some (not closely related) changes, some of which are needed for Pharo 7.
Adding the missing defaultBackgroundColor method and removing the sends of layout message that are deprecated in Pharo 7 are essential to get SmaCC to even open.
Extracting the String form the Text provided by the UI means that the stream contents is presented as a String in th debugger, rather than as an array of characters, which makes it much more readable.
To aid in debugging streams, SmaCCLineNumberStream is enhanced with a printOn: method that shows the current position, and a method that returns the line & column of a position (as a Point).
Here are some (not closely related) changes, some of which are needed for Pharo 7.
Adding the missing defaultBackgroundColor method and removing the sends of layout message that are deprecated in Pharo 7 are essential to get SmaCC to even open.
Extracting the String form the Text provided by the UI means that the stream contents is presented as a String in th debugger, rather than as an array of characters, which makes it much more readable.
To aid in debugging streams, SmaCCLineNumberStream is enhanced with a printOn: method that shows the current position, and a method that returns the line & column of a position (as a Point).