diff options
Diffstat (limited to 'Source/Core/Parser.ssc')
-rw-r--r-- | Source/Core/Parser.ssc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Parser.ssc b/Source/Core/Parser.ssc index 68148acf..86f792bb 100644 --- a/Source/Core/Parser.ssc +++ b/Source/Core/Parser.ssc @@ -57,6 +57,11 @@ public static int Parse (string! filename, /*maybe null*/ List<string!> defines, FileStream stream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
+ return Parse(stream, filename, defines, out program);
+}
+
+// Read the program from a stream. This allows the program to be stored in memory.
+public static int Parse (Stream! stream, string! filename, /*maybe null*/ List<string!> defines, out /*maybe null*/ Program program) /* throws System.IO.IOException */ {
if (defines == null) {
defines = new List<string!>();
|