Commit graph

97 commits

Author SHA1 Message Date
Wolfgang Lux
779c0b47c4 Fix NSDebugLLog format issues detect by clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38063 72102866-910b-0410-8b05-ffd578937521
2014-09-09 13:52:49 +00:00
Wolfgang Lux
66bd2c33fe Revert bogus change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@37540 72102866-910b-0410-8b05-ffd578937521
2014-01-06 11:24:16 +00:00
Richard Frith-MacDonald
fad9c634f1 trivial optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@37485 72102866-910b-0410-8b05-ffd578937521
2013-12-20 14:42:10 +00:00
Wolfgang Lux
70936d6e15 Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36777 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:44:50 +00:00
Wolfgang Lux
254398ccdf Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36776 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:42:15 +00:00
Wolfgang Lux
0e94ff5bac Fix bug where the Smalltalk source reader was setting a wrong token
range for character literals.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36775 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:30:52 +00:00
Wolfgang Lux
bfed68b1c3 Fix bug where the Smalltalk source reader would accept an incomplete
exponent in a real number, e.g., '1e'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36774 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:24:51 +00:00
Wolfgang Lux
4298e255e7 Prevent out of range accesses for the input string in the Smalltalk
source reader.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36773 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:13:05 +00:00
Wolfgang Lux
c046955909 Tidy Smalltalk source reader.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36772 72102866-910b-0410-8b05-ffd578937521
2013-06-30 16:54:32 +00:00
Wolfgang Lux
f1d9694b1c Change Smalltalk grammar to allow empty list of temporaries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36662 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:14:13 +00:00
Wolfgang Lux
3f8eeb9ff0 StepTalk Smalltalk compiler: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36658 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:51:26 +00:00
Wolfgang Lux
ba12bd3874 Fix bug in Smalltalk reader where the last character of an identifier
was dropped when the assignment operator ':=' follows it immediately.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36480 72102866-910b-0410-8b05-ffd578937521
2013-04-06 12:22:28 +00:00
Wolfgang Lux
9feb26b63c Fix -collect: method to properly handle nil results from block.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36456 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:46:24 +00:00
Wolfgang Lux
5cfb99c758 Fix Smalltalk reader to always return correct line numbers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36455 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:42:02 +00:00
Wolfgang Lux
ac8fc9cbb6 Fix bug where the STInterpreterReturnException was not handled when a
block returns nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36426 72102866-910b-0410-8b05-ffd578937521
2013-03-25 11:32:20 +00:00
Wolfgang Lux
b7a0150e02 Fix stack underflow exception when computing the value of an empty
block.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36422 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:29:43 +00:00
Wolfgang Lux
1fc2e5fb63 Follow Smalltalk convention to return the receiver from a method
without an explicit return statement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36421 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:24:11 +00:00
Wolfgang Lux
fd46046983 Fix to allow using Smalltalk blocks even after the method containing
their definition has returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36420 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:19:55 +00:00
Wolfgang Lux
b5aeea6a29 Implement correct semantics for return statements inside a Smalltalk
block, which is to return from the method containing the block's
definition.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36419 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:02:20 +00:00
Wolfgang Lux
9b35f05577 Fix Smalltalk compiler bug: The value of a statement sequence is the
value of its last statement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36410 72102866-910b-0410-8b05-ffd578937521
2013-03-23 20:02:23 +00:00
Wolfgang Lux
760bbb4b83 Fix bug where an uninitialized attribute got used during initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36409 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:58:28 +00:00
Wolfgang Lux
a31258c1d1 Check the result of the super class initializer and assign it to self.
Also fix two memory management errors.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36403 72102866-910b-0410-8b05-ffd578937521
2013-03-23 18:09:25 +00:00
Wolfgang Lux
e180a533b2 Unescape two successive single quote characters inside Smalltalk
literal string tokens.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36235 72102866-910b-0410-8b05-ffd578937521
2013-03-02 16:09:07 +00:00
Wolfgang Lux
303e860924 Define the standard Smalltalk methods for invoking blocks with
arguments, keeping StepTalk's old non-standard methods for backward
compatibility.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36086 72102866-910b-0410-8b05-ffd578937521
2013-02-08 09:02:06 +00:00
Wolfgang Lux
94d605787c Fix syntax error reports to include context when compiling a Smalltalk string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35840 72102866-910b-0410-8b05-ffd578937521
2012-12-02 11:37:26 +00:00
Wolfgang Lux
c1a084a1c8 Remove a repeated attribute declaration from the implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35751 72102866-910b-0410-8b05-ffd578937521
2012-10-26 17:15:52 +00:00
Wolfgang Lux
91ca747a02 Fix unintended fall through in a switch statement in Steptalk detected
by clang's static analyzer


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34731 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:29:14 +00:00
Wolfgang Lux
939fecc187 Fix memory management bugs in Steptalk detected by clang's static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34729 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:22:40 +00:00
Wolfgang Lux
0a390f4c14 Rename selector which is automatically run at the end of a script to
shutDown to avoid conflict with the NSObject -finalize method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34545 72102866-910b-0410-8b05-ffd578937521
2012-01-15 17:50:54 +00:00
Wolfgang Lux
4c834cc46f 64-bit tweaks for StepTalk's Smalltalk compiler.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34539 72102866-910b-0410-8b05-ffd578937521
2012-01-15 15:37:55 +00:00
Wolfgang Lux
2dc8f7f786 Shut down a few more compiler warnings for StepTalk's Smalltalk interpreter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34537 72102866-910b-0410-8b05-ffd578937521
2012-01-15 14:44:47 +00:00
Wolfgang Lux
7f4a3ef104 Shut down (most) compiler warnings for StepTalk's Smalltalk interpreter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34535 72102866-910b-0410-8b05-ffd578937521
2012-01-15 13:27:14 +00:00
Wolfgang Lux
f59cb2fc92 Clean up imports in several StepTalk files removing includes of the
Objective-C runtime headers. Also replace a few more deprecated
Objective-C runtime calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34532 72102866-910b-0410-8b05-ffd578937521
2012-01-15 09:04:40 +00:00
Wolfgang Lux
06545c5c95 Add missing semicolons at end of plist dictionaries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31915 72102866-910b-0410-8b05-ffd578937521
2011-01-20 08:50:33 +00:00
Wolfgang Lux
147bb97e44 Fix a bug in StepTalk's Smalltalk reader where an incorrect string
token was returned when the string ended at the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@31914 72102866-910b-0410-8b05-ffd578937521
2011-01-20 08:38:32 +00:00
Nicola Pero
f1ec641958 Updated to use GNUSTEP_LIBRARY instead of GNUSTEP_INSTALLATION_DIR/Library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@24554 72102866-910b-0410-8b05-ffd578937521
2007-02-14 12:34:00 +00:00
Stefan Urbanek
31585ce54c Update the language template
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21720 72102866-910b-0410-8b05-ffd578937521
2005-09-17 12:30:20 +00:00
Stefan Urbanek
2d8345af4e reflect framework changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21698 72102866-910b-0410-8b05-ffd578937521
2005-09-05 20:03:05 +00:00
Stefan Urbanek
e06f7bf374 added actor class
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21382 72102866-910b-0410-8b05-ffd578937521
2005-06-30 21:10:02 +00:00
Stefan Urbanek
a3d4279702 Fixed undefined key exception - fixed in base too
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21355 72102866-910b-0410-8b05-ffd578937521
2005-06-24 21:06:21 +00:00
Stefan Urbanek
1664a14a02 Access ivars by name not by index, use KVC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21330 72102866-910b-0410-8b05-ffd578937521
2005-06-20 20:40:47 +00:00
Stefan Urbanek
dee34ffd83 block patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20880 72102866-910b-0410-8b05-ffd578937521
2005-03-09 21:35:54 +00:00
Stefan Urbanek
732057a75f Introduced contexts finally commited
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20518 72102866-910b-0410-8b05-ffd578937521
2005-01-04 21:51:13 +00:00
Stefan Urbanek
8417ff6e26 Removed STMethodSignatureForSelector - not-portable to OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20329 72102866-910b-0410-8b05-ffd578937521
2004-11-09 21:12:19 +00:00
Stefan Urbanek
9d91c09b7f *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@20328 72102866-910b-0410-8b05-ffd578937521
2004-11-09 20:59:07 +00:00
Stefan Urbanek
7f834080f5 Fixed max number of literals and longjmp
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19706 72102866-910b-0410-8b05-ffd578937521
2004-07-10 11:12:35 +00:00
Stefan Urbanek
fe3e1bd17d Fixed expresion duplicating.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19648 72102866-910b-0410-8b05-ffd578937521
2004-06-28 21:11:50 +00:00
Stefan Urbanek
bfaafcf06d 0.8.2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19646 72102866-910b-0410-8b05-ffd578937521
2004-06-28 19:36:33 +00:00
Stefan Urbanek
9155a068cd stack fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19565 72102866-910b-0410-8b05-ffd578937521
2004-06-20 12:16:19 +00:00
Stefan Urbanek
eae2cd761b Fixed bug with signed/unsigned bytecode
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@19408 72102866-910b-0410-8b05-ffd578937521
2004-05-27 19:49:58 +00:00