Argh, sent too early:self new color: Color red; yourself��est bien une cascade, non?
Thierry2015-09-16 15:12 GMT+02:00 Thierry Goubier <thierry.goubier@gmail.com>:2015-09-16 15:05 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:OK, I think Sven is right and a cascade needs at least one message send
"self ; yourself"
doesn't work too (both parser don't accept this).But��And I think we should fix RBParser.@Yuri, can you change that.syntax:There are currently two methods in Pharo 5.0 with this
DAPackageAnalyzerWindow class>>#onPackagesNamed:
DAPackageCycleDetectionTreeModel class>>#onPackagesNamed:2015-09-16 11:30 GMT+02:00 Thierry Goubier <thierry.goubier@gmail.com>:Nicolai,can you try with the RBParser directly? I believe Opal uses the RBParser.RBParser parseMethod: 'createRedMorph������ ^ (self new color:Color red); yourself'Oh, RBParser sees it as:self newcolor: Color red;yourself:)Thierry2015-09-16 10:56 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:Who is right ?removing the parenthesis of course works for both.The following method compiles with Opal:but gives a syntax error with the old compilers parser
createRedMorph
������ ^ (self new color:Color red); yourself
createRedMorph
������ ^ (self new color:Color red)End of block expected -> ; yourself(for those who understand the ParseTreeSearcher syntax, how woulda search expression look, for finding code like:���� "(some expression);yourself"nicolai