More on variables and anchors
ID: 194
using uCalcSoftware;
var uc = new uCalc();
var t = uc.NewTransformer();
// Variables are {etc} and {ch}
// Anchors are "This", either "a small" or "an easy", and "Test"
t.FromTo("This {etc} {ch: a small | an easy } Test", "<{etc}> ({ch}) experiment");
Console.WriteLine(t.Transform("This is such an easy test."));
<is such> (an easy) experiment. using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); // Variables are {etc} and {ch} // Anchors are "This", either "a small" or "an easy", and "Test" t.FromTo("This {etc} {ch: a small | an easy } Test", "<{etc}> ({ch}) experiment"); Console.WriteLine(t.Transform("This is such an easy test."));
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
auto t = uc.NewTransformer();
// Variables are {etc} and {ch}
// Anchors are "This", either "a small" or "an easy", and "Test"
t.FromTo("This {etc} {ch: a small | an easy } Test", "<{etc}> ({ch}) experiment");
cout << t.Transform("This is such an easy test.") << endl;
}
<is such> (an easy) experiment. #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); // Variables are {etc} and {ch} // Anchors are "This", either "a small" or "an easy", and "Test" t.FromTo("This {etc} {ch: a small | an easy } Test", "<{etc}> ({ch}) experiment"); cout << t.Transform("This is such an easy test.") << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t = uc.NewTransformer()
'// Variables are {etc} and {ch}
'// Anchors are "This", either "a small" or "an easy", and "Test"
t.FromTo("This {etc} {ch: a small | an easy } Test", "<{etc}> ({ch}) experiment")
Console.WriteLine(t.Transform("This is such an easy test."))
End Sub
End Module
<is such> (an easy) experiment. Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() '// Variables are {etc} and {ch} '// Anchors are "This", either "a small" or "an easy", and "Test" t.FromTo("This {etc} {ch: a small | an easy } Test", "<{etc}> ({ch}) experiment") Console.WriteLine(t.Transform("This is such an easy test.")) End Sub End Module