We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8ca24 commit 6e5fc81Copy full SHA for 6e5fc81
BooleanExpressionParser/Formatter.cs
@@ -4,8 +4,8 @@ namespace BooleanExpressionParser;
4
5
class Formatter
6
{
7
- public string True { get; set; } = "1";
8
- public string False { get; set; } = "0";
+ public char True { get; set; } = '1';
+ public char False { get; set; } = '0';
9
10
public string FormatTokens(IEnumerable<Token> tokens)
11
BooleanExpressionParser/Program.cs
@@ -26,10 +26,7 @@ static void Main(params string[] args)
26
}
27
28
var tables = new List<string>();
29
- var formatter = new Formatter {
30
- True = "T",
31
- False = "F"
32
- };
+ var formatter = new Formatter();
33
34
foreach (var expression in expressions)
35
0 commit comments