How to set and get tags for different rules.

ID: 994

				
					using uCalcSoftware;

var uc = new uCalc();
var t = new uCalc.Transformer();
var ruleA = t.Pattern("A").SetTag(10);
var ruleB = t.Pattern("B").SetTag(20);

Console.WriteLine($"Tag for Rule A: {ruleA.Tag}");
Console.WriteLine($"Tag for Rule B: {ruleB.Tag}");
				
			
Tag for Rule A: 10
Tag for Rule B: 20
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   auto ruleA = t.Pattern("A").SetTag(10);
   auto ruleB = t.Pattern("B").SetTag(20);

   cout << "Tag for Rule A: " << ruleA.Tag() << endl;
   cout << "Tag for Rule B: " << ruleB.Tag() << endl;
}
				
			
Tag for Rule A: 10
Tag for Rule B: 20
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t As New uCalc.Transformer()
      Dim ruleA = t.Pattern("A").SetTag(10)
      Dim ruleB = t.Pattern("B").SetTag(20)
      
      Console.WriteLine($"Tag for Rule A: {ruleA.Tag}")
      Console.WriteLine($"Tag for Rule B: {ruleB.Tag}")
   End Sub
End Module
				
			
Tag for Rule A: 10
Tag for Rule B: 20