>From b0c17f9d896bed58c0567153a933b3649bfb536e Mon Sep 17 00:00:00 2001 From: Gwenael Casaccio
Date: Tue, 10 Sep 2013 15:33:56 +0200 Subject: [PATCH] Make STInST and gst-parse.c consistent about a trailing '.' at the end of the class definition --- packages/stinst/parser/ChangeLog | 6 ++++ packages/stinst/parser/GSTParser.st | 1 + packages/stinst/parser/GSTParserTests.st | 53 ++++++++++++++++++++++++++++++++ packages/stinst/parser/package.xml | 2 ++ 4 files changed, 62 insertions(+) create mode 100644 packages/stinst/parser/GSTParserTests.st diff --git a/packages/stinst/parser/ChangeLog b/packages/stinst/parser/ChangeLog index 072a89c..16bf75c 100644 --- a/packages/stinst/parser/ChangeLog +++ b/packages/stinst/parser/ChangeLog @@ -1,3 +1,9 @@ +2013-09-10 Gwenael Casaccio + + * GSTParser.st: Make STInST and gst-parse.c consistent about a trailing '.' + at the end of the class definition. + * GSTParserTests.st: Add testcase for trailing consistency. + 2013-08-10 Gwenael Casaccio * STLoaderObjs.st: Fix ProxyNamespace>>#printOn: and add ProxyNamespace>>#examineOn:. 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. ] diff --git a/packages/stinst/parser/GSTParserTests.st b/packages/stinst/parser/GSTParserTests.st new file mode 100644 index 0000000..9722000 --- /dev/null +++ b/packages/stinst/parser/GSTParserTests.st @@ -0,0 +1,53 @@ +"====================================================================== +| +| GSTParser tests +| +| + ======================================================================" + +"====================================================================== +| +| Copyright (C) 2013 Free Software Foundation, Inc. +| Written by Gwenael Casaccio. +| +| This file is part of the GNU Smalltalk class library. +| +| The GNU Smalltalk class library is free software; you can redistribute it +| and/or modify it under the terms of the GNU Lesser General Public License +| as published by the Free Software Foundation; either version 2.1, or (at +| your option) any later version. +| +| The GNU Smalltalk class library is distributed in the hope that it will be +| useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +| General Public License for more details. +| +| You should have received a copy of the GNU Lesser General Public License +| along with the GNU Smalltalk class library; see the file COPYING.LIB. +| If not, write to the Free Software Foundation, 59 Temple Place - Suite +| 330, Boston, MA 02110-1301, USA. +| + ======================================================================" + + + +Namespace current: STInST.Tests [ + +TestCase subclass: TestGSTParser [ +