From 2349fb743fdfaf46bb4dd5366782da454c556612 Mon Sep 17 00:00:00 2001 From: Valerie Date: Wed, 3 Apr 2024 12:14:51 -0400 Subject: [PATCH] removed lexer test function --- README.md | 5 +++++ src/Command.cs | 6 +----- src/Program.cs | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf0673d --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ + +# Dungeoneer + +Dungeoneer is an extensible digital dice program written in C#. + diff --git a/src/Command.cs b/src/Command.cs index 5ab92d3..49123cb 100644 --- a/src/Command.cs +++ b/src/Command.cs @@ -24,17 +24,13 @@ namespace Dungeoneer { // create new parsed expression object and pretty-print var roll = Dungeoneer.Interpreter.Parser.ParseRoll(input); //var result = roll.Result; - Console.WriteLine($"{input}\n=> {roll}"); + Console.WriteLine($"{input}\n => {roll}"); } public static void New(TokenSet input) { } - public static void LexTest(TokenSet input) { - Console.WriteLine(input); - } - } } diff --git a/src/Program.cs b/src/Program.cs index d36a37d..3b14430 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -10,7 +10,6 @@ namespace Dungeoneer { public static Dictionary ReplCommands = new Dictionary { { "new", (Command)Dungeoneer.Command.New }, { "roll", (Command)Dungeoneer.Command.Roll }, -// { "lex", (Command)Dungeoneer.Command.LexTest } // TODO: "with"? };