initial commit

This commit is contained in:
2018-11-10 13:11:36 +01:00
commit 0693698f28
26 changed files with 1200 additions and 0 deletions

27
Yc/Program.cs Normal file
View File

@@ -0,0 +1,27 @@
using System;
using Upsilon.Evaluator;
using Upsilon.Parser;
namespace Yc
{
static class Program
{
static void Main(string[] args)
{
Console.WriteLine("Upsilon REPL");
while (true)
{
Console.Write("» ");
var input = Console.ReadLine();
if (input == "exit")
{
return;
}
var parser = Parser.Parse(input);
//Console.WriteLine(parser.Print());
Console.WriteLine(parser.Evaluate());
}
}
}
}

12
Yc/Yc.csproj Normal file
View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Upsilon\Upsilon.csproj" />
</ItemGroup>
</Project>