3 ms·
You should make a Tree Language. I don't know your semantics but whipped up a prototype in 10 minutes (link below). It can be easily read/written by humans and
by breck 4y ago
You should make a Tree Language. I don't know your semantics but whipped up a prototype in 10 minutes (link below). It can be easily read/written by humans and compile to whatever machine format you want. Would probably take a few hours to design it really well.
https://jtree.treenotation.org/designer/#grammar%0A%20inferredLanguageNode%0A%20%20root%0A%20%20inScope%20messageNode%0A%20keywordCell%0A%20nameCell%0A%20%20highlightScope%20keyword%0A%20dateCell%0A%20%20highlightScope%20constant.numeric%0A%20stringCell%0A%20%20highlightScope%20string%0A%20messageCell%0A%20%20extends%20stringCell%0A%20anyCell%0A%20messageNode%0A%20%20inScope%20contentNode%20knowledgeCutoffNode%20currentDateNode%20nameNode%20userInputHereNode%0A%20%20crux%20message%0A%20%20cells%20keywordCell%20messageCell%0A%20contentNode%0A%20%20crux%20content%0A%20%20catchAllCellType%20stringCell%0A%20%20cells%20keywordCell%0A%20knowledgeCutoffNode%0A%20%20crux%20knowledgeCutoff%0A%20%20cells%20keywordCell%20dateCell%0A%20currentDateNode%0A%20%20crux%20currentDate%0A%20%20cells%20keywordCell%20dateCell%0A%20nameNode%0A%20%20crux%20name%0A%20%20cells%20keywordCell%20nameCell%0A%20userInputHereNode%0A%20%20crux%20userInputHere%0A%20%20cells%20keywordCell%0Asample%0A%20message%20system%0A%20%20content%20You%20are%20ChatGPT%2C%20a%20large%20language%20model%20trained%20by%20OpenAI.%20Answer%20as%20concisely%20as%20possible.%0A%20%20knowledgeCutoff%202021-09-01%0A%20%20currentDate%202023-03-01%0A%20message%20user%0A%20%20content%20How%20are%20you%0A%20message%20assistant%0A%20%20content%20I%20am%20doing%20well%0A%20message%20user%0A%20%20content%20How%20are%20you%20now%3F%0A%20%0A%20message%20user%0A%20%20content%20List%20off%20some%20good%20ideas%3A%0A%20message%20assistant%0A%20%0A%20message%20system%0A%20%20content%20Translate%20from%20English%20to%20French%0A%20message%20system%0A%20%20name%20example_user%0A%20%20content%20How%20are%20you%3F%0A%20message%20system%0A%20%20name%20example_assistant%0A%20%20content%20Comment%20allez-vous%3F%0A%20message%20user%0A%20%20userInputHere https://jtree.treenotation.org/designer/#grammar%0A%20inferr...