-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDigitalLogicSolver.cs
More file actions
47 lines (33 loc) · 987 Bytes
/
DigitalLogicSolver.cs
File metadata and controls
47 lines (33 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using MathParser.DataTypes;
using System.Collections.Generic;
namespace MathParser
{
public delegate void Digital_Logic_KeyWords_Sync_Delegate(ref List<string> theList);
public class DigitalLogicSolver : ISolver
{
MathParserExpression theSolution;
public MathParserExpression getSolution() => theSolution;
public static Digital_Logic_KeyWords_Sync_Delegate OnSyncKeyWords = null;
bool processed = false;
public bool isProcessed() => processed;
static List<string> theKeyWordsList = new List<string>();
public static void syncKeyWords()
{
theKeyWordsList.Add ("BIN");
theKeyWordsList.Add ("HEX");
theKeyWordsList.Add ("DEC");
theKeyWordsList.Add ("OCT");
OnSyncKeyWords?.Invoke (ref theKeyWordsList);
}
public static List<string> getKeyWordsList()
{
return theKeyWordsList;
}
string theExpression = null;
public DigitalLogicSolver (string theExpression)
{
this.theExpression = theExpression;
}
}
}