From c4532d85e7815ae79a3821114ef97eda812fe7a7 Mon Sep 17 00:00:00 2001 From: arookas Date: Wed, 23 Dec 2015 20:22:37 -0500 Subject: [PATCH] Fixed: clear the tables and stacks from the previous operation. --- ssc/context.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssc/context.cs b/ssc/context.cs index aac9c3f..965da76 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -42,6 +42,10 @@ namespace arookas { throw new ArgumentNullException("importResolver"); } + DataTable.Clear(); + SymbolTable.Clear(); + Scopes.Clear(); + Loops.Clear(); ImportResolver = importResolver; writer = new aBinaryWriter(output, Endianness.Big, Encoding.GetEncoding(932)); Text = new sunWriter(writer);