2.6.4. String representation

The string representation of an expression can be obtained with the special operator _str. This is most useful for printing a variable name (but it works for any expression). Note the expanded value is stringized.
Start felix section to tut/macros/mac-2.06.04-0.flx[1 /1 ]
     1: #line 779 "./lpsrc/flx_tut_macro.pak"
     2: #include <flx.flxh>
     3: var x = 1;
     4: var y = 42;
     5: print (_str x); print " = "; print x; endl;
     6: print (_str y); print " = "; print y; endl;
     7: print (_str$ x+y); print " = "; print$ x+y; endl;
End felix section to tut/macros/mac-2.06.04-0.flx[1]
Start data section to tut/macros/mac-2.06.04-0.expect[1 /1 ]
     1: x = 1
     2: y = 42
     3: (add (x, y)) = 43
End data section to tut/macros/mac-2.06.04-0.expect[1]