Commit 68f99e89 authored by c0pperdragon's avatar c0pperdragon

Fix for compiler crash on program error, various typos.

parent 3f4ddf93
...@@ -34,8 +34,9 @@ namespace Test ...@@ -34,8 +34,9 @@ namespace Test
} }
static void TestCompile() static void TestCompile()
{ {
String f = "C:/Users/Reinhard/Documents/GitHub/EV3Basic/Examples/Concurrency.sb"; // String f = "C:/Users/Reinhard/Documents/GitHub/EV3Basic/Examples/Concurrency.sb";
String f = "C:/Users/Reinhard/Desktop/Gripper_Rolf.sb";
FileStream fs = new FileStream(f, FileMode.Open, FileAccess.Read); FileStream fs = new FileStream(f, FileMode.Open, FileAccess.Read);
FileStream ofs = new FileStream("c:/temp/compiledbasic.lms", FileMode.Create, FileAccess.Write); FileStream ofs = new FileStream("c:/temp/compiledbasic.lms", FileMode.Create, FileAccess.Write);
......
...@@ -1362,13 +1362,13 @@ ...@@ -1362,13 +1362,13 @@
<param name="size">Anzahl der Elemente von jedem Vektor für die Berechnung</param> <param name="size">Anzahl der Elemente von jedem Vektor für die Berechnung</param>
<param name="A">Erster Vektor</param> <param name="A">Erster Vektor</param>
<param name="B">Zweiter Vektor</param> <param name="B">Zweiter Vektor</param>
<returns>A Vektor der angegebenen Größe, der alle Summen enhält.</returns> <returns>Ein Vektor der angegebenen Größe, der alle Summen enhält.</returns>
</member> </member>
<member name="M:SmallBasicEV3Extension.Vector.Sort(Microsoft.SmallBasic.Library.Primitive,Microsoft.SmallBasic.Library.Primitive)"> <member name="M:SmallBasicEV3Extension.Vector.Sort(Microsoft.SmallBasic.Library.Primitive,Microsoft.SmallBasic.Library.Primitive)">
<summary> <summary>
Sortiert die Element eines Vektors in aufsteigender Reihenfolge. Sortiert die Elemente eines Vektors in aufsteigender Reihenfolge.
</summary> </summary>
<param name="size">Anzahl der Elements</param> <param name="size">Anzahl der Elemente</param>
<param name="A">Der zu sortierende Vektor</param> <param name="A">Der zu sortierende Vektor</param>
<returns>Ein neuer Vektor mit den sortierten Elementen</returns> <returns>Ein neuer Vektor mit den sortierten Elementen</returns>
</member> </member>
......
...@@ -2016,9 +2016,12 @@ namespace EV3BasicCompiler ...@@ -2016,9 +2016,12 @@ namespace EV3BasicCompiler
else else
{ {
functionofsub[sub] = fd; functionofsub[sub] = fd;
foreach (String callee in subcallstructure[sub]) if (subcallstructure.ContainsKey(sub))
{ {
set_all_functionofsub(fd, callee); foreach (String callee in subcallstructure[sub])
{
set_all_functionofsub(fd, callee);
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment