mirror of
https://github.com/0xJ1M/MathsEngine.git
synced 2026-06-05 01:10:08 +00:00
Major refactor
This commit is contained in:
21
MathEngine/MathRunner/MathRunner.csproj
Normal file
21
MathEngine/MathRunner/MathRunner.csproj
Normal file
@@ -0,0 +1,21 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MathEngine\MathEngine.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
15
MathEngine/MathRunner/Program.cs
Normal file
15
MathEngine/MathRunner/Program.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using MathEngine.Expression;
|
||||
|
||||
namespace MathRunner
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Evaluting expression...");
|
||||
Expression exp = new("54+2+1");
|
||||
Console.WriteLine(exp.Evaluate());
|
||||
Console.WriteLine("Hello, World!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user