-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExprNodes.cs
More file actions
37 lines (32 loc) · 757 Bytes
/
Copy pathExprNodes.cs
File metadata and controls
37 lines (32 loc) · 757 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
using System.Numerics;
namespace JCore
{
public class NumberNode : Node
{
public BigInteger Value { get; }
public NumberNode(BigInteger value)
{
Value = value;
}
}
public class VariableNode : Node
{
public string Name { get; }
public VariableNode(string name)
{
Name = name;
}
}
public class BinaryOpNode : Node
{
public Node Left { get; }
public string Operator { get; }
public Node Right { get; }
public BinaryOpNode(Node left, string op, Node right)
{
Left = left;
Operator = op;
Right = right;
}
}
}