[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Infinite loop with the SqueakFile parser
From: |
Holger Hans Peter Freyther |
Subject: |
[Help-smalltalk] Infinite loop with the SqueakFile parser |
Date: |
Tue, 05 Apr 2011 20:59:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.9 |
Hi,
using this diff I am able to send the FileIn parser into an infinite loop. The
issue appears to be due the '-' which is interpreted as a binary operator or
similar. I intend to look into fixing this.
diff --git a/tests/stcompiler.st b/tests/stcompiler.st
index 7144867..d72340b 100644
--- a/tests/stcompiler.st
+++ b/tests/stcompiler.st
@@ -90,3 +90,15 @@ asParser
with: STInST.SqueakFileInParser.
]
+Eval [
+ | squeak |
+ "Test the import of squeak code"
+
+ squeak := '!String methodsFor: ''*a'' stamp: ''lr 11/7/2009 13:32''!
+asParser
+ ^ #(1 -1)! !'.
+
+ STInST.STClassLoader new parseSmalltalkStream: squeak readStream
+ with: STInST.SqueakFileInParser.
+]
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-smalltalk] Infinite loop with the SqueakFile parser,
Holger Hans Peter Freyther <=