Filled in a lot of code
continuous-integration/appveyor/branch AppVeyor build failed

This commit is contained in:
2021-03-26 11:30:26 +13:00
parent 3ed9bc885a
commit 7967fc4d21
2 changed files with 115 additions and 18 deletions
+8 -6
View File
@@ -37,10 +37,10 @@ namespace Assignment_1
static void Main(string[] args)
{
Console.WriteLine("┌──────────────────────────────────────────┐");
Console.WriteLine("│ 159.341 2021 Semester 1, Assignment 1 │");
Console.WriteLine("│ Submitted by Brychan Dempsey, 14299890 │");
Console.WriteLine("└──────────────────────────────────────────┘");
Console.WriteLine("┌──────────────────────────────────────────────┐");
Console.WriteLine("│ 159.341 2021 Semester 1, Assignment 1 (C#) │");
Console.WriteLine("│ Submitted by Brychan Dempsey, 14299890 │");
Console.WriteLine("└──────────────────────────────────────────────┘");
// Parse the source from the memory stream
bool exit = false;
while (!exit)
@@ -185,6 +185,8 @@ namespace Assignment_1
{
// By turning the result of the command into an action,
// we can defer processing the final result until the end of this control flow
// This simplifies parsing the eol, and prevents the result being processed too
// optimistically.
Action result = () => { };
source.Position = position;
switch ((Statements)statementType)
@@ -428,7 +430,7 @@ namespace Assignment_1
}
Action Exit(Stream source, long initialStreamLength, bool isDynamicInput=false)
{
Action exitAction = () =>
void exitAction()
{
if (source.Length != initialStreamLength && isDynamicInput)
{
@@ -457,7 +459,7 @@ namespace Assignment_1
}
}
}
};
}
return exitAction;
}
Action Print(Stream source, int mode = 0)