rjacobson
(Robert Jacobson)
November 19, 2018, 4:06pm
1
What is the difference between UndocumentedTestFEParserPacket and ReparseBoxStructurePacket?
I am aware of John Fultzs explanation of UndocumentedTestFEParserPacket on SE. But I dont understand its relationship to ReparseBoxStructurePacket.
kubapod
(Kuba Podkalicki)
November 20, 2018, 10:10pm
2
This is only an observation, those functions do not need to be internally related at all.
So I’d say that:
FrontEnd`UndocumentedTestFEParserPacket[input_String, strip:(True|False)
]:={
BoxData @
If[strip, StripBoxes, Identity] @
FrontEnd`ReparseBoxStructurePacket[input]
, StandardForm
}
additionally FrontEnd`ReparseBoxStructurePacket can also take a box expression as input, while FrontEnd`UndocumentedTestFEParserPacket can only handle strings.
FrontEndExecute @
FrontEnd`ReparseBoxStructurePacket @
RowBox[{"Test", "[", "Test", "[", "1", "]", "]"}]
(* Out[]:= RowBox[{"Test", "[", RowBox[{"Test", "[", "1", "]"}], "]"}] *)
Nice question btw, thanks.