Identifying all literal values in an expression and tagging them.

ID: 914

See: {@Literal}
				
					using uCalcSoftware;

var uc = new uCalc();
var t = new uCalc.Transformer();
t.FromTo("{@Literal:val}", "VAL({val})");

Console.WriteLine(t.Transform("""
x = 10 + "abc"
"""));
				
			
x = VAL(10) + VAL("abc")
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   t.FromTo("{@Literal:val}", "VAL({val})");

   cout << t.Transform(R"(x = 10 + "abc")") << endl;
}
				
			
x = VAL(10) + VAL("abc")
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t As New uCalc.Transformer()
      t.FromTo("{@Literal:val}", "VAL({val})")
      
      Console.WriteLine(t.Transform("x = 10 + ""abc"""))
   End Sub
End Module
				
			
x = VAL(10) + VAL("abc")