Identifying any operator sequence (single or multi-character) and labeling it.
ID: 903
See: {@Reducible}, Introduction
using uCalcSoftware;
var uc = new uCalc();
var t = new uCalc.Transformer();
t.FromTo("{@Reducible:op}", "[OP:{op}]");
Console.WriteLine(t.Transform("a + b <= c"));
a [OP:+] b [OP:<=] c using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); t.FromTo("{@Reducible:op}", "[OP:{op}]"); Console.WriteLine(t.Transform("a + b <= c"));
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
uCalc::Transformer t;
t.FromTo("{@Reducible:op}", "[OP:{op}]");
cout << t.Transform("a + b <= c") << endl;
}
a [OP:+] b [OP:<=] c #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; t.FromTo("{@Reducible:op}", "[OP:{op}]"); cout << t.Transform("a + b <= c") << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t As New uCalc.Transformer()
t.FromTo("{@Reducible:op}", "[OP:{op}]")
Console.WriteLine(t.Transform("a + b <= c"))
End Sub
End Module
a [OP:+] b [OP:<=] c Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t As New uCalc.Transformer() t.FromTo("{@Reducible:op}", "[OP:{op}]") Console.WriteLine(t.Transform("a + b <= c")) End Sub End Module