Skip to content

Commit 6e5fc81

Browse files
committed
Alter True/False custom symbols to be char
1 parent 0f8ca24 commit 6e5fc81

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

BooleanExpressionParser/Formatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ namespace BooleanExpressionParser;
44

55
class Formatter
66
{
7-
public string True { get; set; } = "1";
8-
public string False { get; set; } = "0";
7+
public char True { get; set; } = '1';
8+
public char False { get; set; } = '0';
99

1010
public string FormatTokens(IEnumerable<Token> tokens)
1111
{

BooleanExpressionParser/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ static void Main(params string[] args)
2626
}
2727

2828
var tables = new List<string>();
29-
var formatter = new Formatter {
30-
True = "T",
31-
False = "F"
32-
};
29+
var formatter = new Formatter();
3330

3431
foreach (var expression in expressions)
3532
{

0 commit comments

Comments
 (0)