Added `GDBCommand class >> parse:`
authorJan Vrany <jan.vrany@fit.cvut.cz>
Mon, 08 Jan 2018 19:43:49 +0000
changeset 94 6a4377ee1563
parent 93 b1715ebf8df1
child 95 f417138e9c48
Added `GDBCommand class >> parse:`
GDBCommand.st
--- a/GDBCommand.st	Tue Dec 12 23:01:27 2017 +0000
+++ b/GDBCommand.st	Mon Jan 08 19:43:49 2018 +0000
@@ -50,6 +50,20 @@
 "
 ! !
 
+!GDBCommand class methodsFor:'utilities'!
+
+parse: aStringOrStream
+    "Return an sub-instance of GDBCommand from textual representation"
+
+    ^ (GDBMIParser on: aStringOrStream readStream) parseCommand.
+
+    "
+    GDBCommand parse: 'b new.c : 123'
+    "
+
+    "Created: / 08-01-2018 / 19:22:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
 !GDBCommand methodsFor:'accessing'!
 
 token
@@ -97,3 +111,10 @@
     ^ false
 ! !
 
+!GDBCommand class methodsFor:'documentation'!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
+! !
+