STInST and gst-parse.c are inconsistent on parsing trailing '.'

Project:GNU Smalltalk
Component:STInST
Category:bug
Priority:normal
Assigned:Unassigned
Status:active
Description

STInST and gst-parse.c are inconsistent about a trailing '.' at the end of the class definition. E.g. like this:


Object subclass: Test [
].

It has been found while trying to load Cairo with the 'Compiler' package.

Updates

#1 submitted by Gwenael Casaccio on Tue, 09/10/2013 - 08:31

   diff --git a/packages/stinst/parser/GSTParser.st b/packages/stinst/parser/GSTParser.st
   index 66fedcb..7d934e1 100644
   --- a/packages/stinst/parser/GSTParser.st
   +++ b/packages/stinst/parser/GSTParser.st
   @@ -168,6 +168,7 @@ STInST.STFileInParser subclass: GSTFileInParser [
           addInstVars := self
               parseClassBodyElement: addInstVars
               withinExtend: extend ].
    +        currentToken isSpecial ifTrue: [ self skipToken: $. ].
       taggee := oldTaggee.
    ]

hello, I've fixed the parsing issue
just add currentToken isSpecial ifTrue: [ self skipToken: $. ]. line 171 in gstparse
but cairo package still won't load that's another issue :}
to fix it rename Cairo class as CCairo (because it has the same name as the namespace)

User login