microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.14k stars 309 forks source link

Convert expressions from standard to TextFirst #2219

Open anderson-joyle opened 4 months ago

anderson-joyle commented 4 months ago

We need to convert standard expressions into TextFirst format. Possibly TexlNode.ToTextFirstString().

Examples: Input: "ordinary text" Output: ordinary text

Input: $"3 {3+3}" Output: 3 ${3+3}

MikeStall commented 3 months ago

These are both text first and mean the same thing as $"3 {3+3}": =$"3 {3+3}"

Same as: 3 ${3+3}