using uCalcSoftware; var uc = new uCalc(); using (var t = new uCalc.Transformer()) { // This rule replaces the ALPHANUMERIC token 'x', not just the character 'x'. t.FromTo("x", "value"); var code = """ if (x > 10) print("Max value is x"); """; // The 'x' inside the string is ignored because QuoteSensitive is true by default. Console.WriteLine(t.Transform(code)); }