SmaCCRefactoring / SmaCC

Smalltalk Compiler Compiler : a parser generator
Other
32 stars 15 forks source link

Improvements for Pharo 7 #49

Closed apblack closed 7 years ago

apblack commented 7 years ago

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).

ThierryGoubier commented 7 years ago

Ok for merging. Thanks!