Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t As New uCalc.Transformer()
      
      '// 1. Parent rule finds content inside parentheses.
      Dim parentRule = t.FromTo("({body})", "({body})")
      
      '// 2. Get the local transformer for the parent.
      Dim local_t = parentRule.LocalTransformer
      
      '// 3. Child rule runs only inside the parentheses.
      local_t.FromTo("this", "THIS")
      
      Dim text = "do not find this, but (find this) and not this"
      Console.WriteLine(t.Transform(text))
   End Sub
End Module