Internal Test (Configurability) Verifying that `{@StatementSeparator}` respects the engine's definition (e.g., checking if it correctly ignores a comma used as a parameter separator).
ID: 900
using uCalcSoftware;
var uc = new uCalc();
var t = new uCalc.Transformer();
t.FromTo("{@StatementSeparator}", "STMT");
// Comma is not a StatementSeparator, so it should be ignored.
Console.WriteLine(t.Transform("func(a, b); next();"));
func(a, b)STMT next()STMT using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); t.FromTo("{@StatementSeparator}", "STMT"); // Comma is not a StatementSeparator, so it should be ignored. Console.WriteLine(t.Transform("func(a, b); next();"));
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
uCalc::Transformer t;
t.FromTo("{@StatementSeparator}", "STMT");
// Comma is not a StatementSeparator, so it should be ignored.
cout << t.Transform("func(a, b); next();") << endl;
}
func(a, b)STMT next()STMT #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; t.FromTo("{@StatementSeparator}", "STMT"); // Comma is not a StatementSeparator, so it should be ignored. cout << t.Transform("func(a, b); next();") << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t As New uCalc.Transformer()
t.FromTo("{@StatementSeparator}", "STMT")
'// Comma is not a StatementSeparator, so it should be ignored.
Console.WriteLine(t.Transform("func(a, b); next();"))
End Sub
End Module
func(a, b)STMT next()STMT Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t As New uCalc.Transformer() t.FromTo("{@StatementSeparator}", "STMT") '// Comma is not a StatementSeparator, so it should be ignored. Console.WriteLine(t.Transform("func(a, b); next();")) End Sub End Module