Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      '// 1. Expression Parser: Evaluate a simple math or string expression
      Console.WriteLine($"Parser Result: {uc.Eval("(100 - 50) / 2")}")
      Console.WriteLine($"Parser Result (string): {uc.EvalStr("'Hello ' + 'World'")}")
      
      '// 2. Transformer: Perform a basic find-and-replace
      Dim t As New uCalc.Transformer()
      t.FromTo("Hello", "Hi")
      t.FromTo("World", "Planet")
      t.SkipOver("/* {comment} */")
      Console.WriteLine($"Transformer Result: {t.Transform("Hello World /* Was Hello World */")}")
      
      '// 3. String Library: Use a fluent, chainable operation
      Dim s As uCalc.String = "The value is: important"
      s.After(":").ToUpper()
      Console.WriteLine($"String Library Result: {s}")
      
      
   End Sub
End Module