Here is code that I thought would make the front end parse f
as BigFunction
:
MakeExpression["f", StandardForm] := MakeExpression["BigFunction", StandardForm]
It works provided it is the only thing in the input:
f
(* BigFunction *)
But it doesn't work if it appears anywhere inside a larger expression:
f + 1
(* f + 1 *) (* I want BigFunction + 1 *)
f[x]
(* f[x] *) (* I want BigFunction[x] *)
How do I make single character expressions parse as longer names?
Note: Since I want the conversion to occur during parsing, I don't want to use Set
:
f = BigFunction