Transformer.uCalc

ID: 158

				
					using uCalcSoftware;

var uc = new uCalc();
var t = uc.NewTransformer();
t.uCalc.DefineVariable("xyz = 123");

t.FromTo("xyz", "{@Eval: xyz * 10}");
Console.WriteLine(t.Transform("The answer is: xyz"));
				
			
The answer is: 1230
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   t.uCalc().DefineVariable("xyz = 123");

   t.FromTo("xyz", "{@Eval: xyz * 10}");
   cout << t.Transform("The answer is: xyz") << endl;
}
				
			
The answer is: 1230
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t = uc.NewTransformer()
      t.uCalc.DefineVariable("xyz = 123")
      
      t.FromTo("xyz", "{@Eval: xyz * 10}")
      Console.WriteLine(t.Transform("The answer is: xyz"))
   End Sub
End Module
				
			
The answer is: 1230