Feature/implement exponentiation (#6)

* Modified System to make each numeric node a non-generic for now.

Implemented decimal exponentation. This is a draft implementation and is not intended for final release

* Reverted change to NumericNode and fixed tests
This commit is contained in:
0xJ1M
2023-09-19 20:44:34 +01:00
committed by GitHub
parent 461a60ff77
commit f837311da8
9 changed files with 149 additions and 21 deletions

View File

@@ -78,10 +78,8 @@ namespace EngineTests.Parser_Tests.Nodes
[TestMethod]
public void TestNodeFactoryNumericNodesOnDefinedTypes()
{
Token test_token1 = new("100", Token.Type.Numeric, Token.NumericType.Integer, 0);
Token test_token2 = new("100.5", Token.Type.Numeric, Token.NumericType.Decimal, 0);
BaseNode testNode1 = NodeFactory.CreateNumericNode(test_token1);
BaseNode testNode2 = NodeFactory.CreateNumericNode(test_token2);
}