Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.6K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

WolframLanguageData plain text usage definitions, some problems.

Posted 3 years ago

In my effort to pull apart usage definition text blocks into lists, I have written some code to do so:

getUsg2[symb1_] :=   StringSplit[ StringReplace[
WolframLanguageData[symb1, "PlaintextUsage"], {". " -> ".. ", 
"\\!\\(\\*" -> "", ",AutoSpacing->False" -> "", "\\\"" -> "\""}],
". "];

However I found a small list of symbols whose plaintext usage blocks has boxes still used. Examine the code below to see the problems:

getUsg2@ {"Begin", "BeginPackage", "CloudExpression", "CloudObject",  
"DeclarePackage", "DumpSave", "FindChannels", "Needs", "Save"}

Am attaching a notebook. Can someone please help me nail down the last 9 symbols to parse. Or teach me the knowledge to figure it out.

Thanks

Attachments:
POSTED BY: Andrew Meit
2 Replies
Posted 3 years ago

I have decided to fix the malformed usage definitions than parse them; now I can revise my code better. Attaching notebook. I have reported the malformed definitions with my fixes to their bug database. Found out not all symbols in System` will be found in WLD at this time; but over time what is missing will be addressed. At least am no longer in parsing boxes hell. ;-)

Attachments:
POSTED BY: Andrew Meit
Posted 3 years ago
POSTED BY: Updating Name
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard