-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated namespace to reflect the nuget package
- Loading branch information
Showing
13 changed files
with
26 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
using System; | ||
using Calculator; | ||
using BLM16.Util.Calculator; | ||
|
||
namespace Examples; | ||
|
||
class ConsoleIO | ||
while (true) | ||
{ | ||
static void Main(string[] args) | ||
try | ||
{ | ||
while (true) | ||
{ | ||
try | ||
{ | ||
Console.Write("Enter your equation: "); | ||
var eq = Console.ReadLine(); | ||
|
||
var calculator = new Calculator.Calculator(); | ||
var res = calculator.Calculate(eq); | ||
Console.Write("Enter your equation: "); | ||
var eq = Console.ReadLine(); | ||
|
||
var calculator = new Calculator(); | ||
var res = calculator.Calculate(eq); | ||
|
||
Console.WriteLine($"Result: {res}\n"); | ||
} | ||
catch (MathSyntaxException e) | ||
{ | ||
Console.WriteLine(e + "\n"); | ||
} | ||
} | ||
Console.WriteLine($"Result: {res}\n"); | ||
} | ||
catch (MathSyntaxException e) | ||
{ | ||
Console.WriteLine(e + "\n"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System; | ||
|
||
namespace Calculator; | ||
namespace BLM16.Util.Calculator; | ||
|
||
/// <summary> | ||
/// Builtin token types | ||
|