{@Define}
ID: 206
See: {@Define}
using uCalcSoftware;
var uc = new uCalc();
var t = uc.NewTransformer();
t.Pattern("{@Define: Var: xyz = 123}");
t.FromTo("abc", "{@Eval: xyz * 10}");
Console.WriteLine(t.Transform("The value is: abc"));
The value is: 1230 using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.Pattern("{@Define: Var: xyz = 123}"); t.FromTo("abc", "{@Eval: xyz * 10}"); Console.WriteLine(t.Transform("The value is: abc"));
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
auto t = uc.NewTransformer();
t.Pattern("{@Define: Var: xyz = 123}");
t.FromTo("abc", "{@Eval: xyz * 10}");
cout << t.Transform("The value is: abc") << endl;
}
The value is: 1230 #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.Pattern("{@Define: Var: xyz = 123}"); t.FromTo("abc", "{@Eval: xyz * 10}"); cout << t.Transform("The value is: abc") << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t = uc.NewTransformer()
t.Pattern("{@Define: Var: xyz = 123}")
t.FromTo("abc", "{@Eval: xyz * 10}")
Console.WriteLine(t.Transform("The value is: abc"))
End Sub
End Module
The value is: 1230 Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() t.Pattern("{@Define: Var: xyz = 123}") t.FromTo("abc", "{@Eval: xyz * 10}") Console.WriteLine(t.Transform("The value is: abc")) End Sub End Module