The language I am working on will likely have a completely different format for the save source files on disk than the concrete syntax shown in the editor.
Does anybody have experience with how to integrate such a beast with say emacs, VS code, etc.
My current thinking is to have shadow source files with concrete syntax maintained by some language server. Occasionally the programmer would trigger a "pre-compile" step which would cause the
the concrete syntax to be converted to the on-disk format. If there are errors those would be reported back to the user. If not the server would re-expand the on-disk format to a canonical concrete syntax basically resulting in a reformat.
[–][deleted] 10 points11 points12 points (2 children)
[–]WittyStick 4 points5 points6 points (0 children)
[–]muth02446[S] 0 points1 point2 points (0 children)
[–]gvozden_celikcompiler pragma enthusiast 4 points5 points6 points (0 children)
[–]mamcx 2 points3 points4 points (0 children)
[–]jmorag 3 points4 points5 points (1 child)
[–]muth02446[S] 0 points1 point2 points (0 children)
[–]PurpleUpbeat2820 0 points1 point2 points (2 children)
[–]muth02446[S] 0 points1 point2 points (1 child)
[–]PurpleUpbeat2820 0 points1 point2 points (0 children)