Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t = uc.NewTransformer()
      '// NOTE: We do NOT call t.Find(), so the matches collection is empty.
      
      Dim m = t.Matches
      
      Console.WriteLine($"Match count: {m.Count()}")
      
      '// Even with no matches, the parent context should be accessible
      Dim parent_uc = m.uCalc
      
      Console.WriteLine($"Parent uCalc is valid: {parent_uc.MemoryIndex = uc.MemoryIndex}")
   End Sub
End Module