Add more statements and bug fixes

- Add `Execute(List<string>...` method to interpreter
- Add escape sequence (`!!`)
- Fix `Evaluator.Calulate` method not correctly handling `-` and `+` prefixes
This commit is contained in:
Stone_Red
2022-03-31 13:01:31 +02:00
parent 29bbcebf74
commit 510d2d910c
11 changed files with 101 additions and 41 deletions
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using YesNt.Interpreter.Attributes;
using YesNt.Interpreter.Enums;
@@ -50,7 +51,8 @@ namespace YesNt.Interpreter.Statements
}
[Statement("cls", SearchMode.Exact, SpaceAround.None, ConsoleColor.Magenta)]
public void Clear(string args)
[SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Won't work if static")]
public void Clear(string _)
{
Console.Clear();
}