Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Run code in the brain language virtual machine
ResourceFunction["BrainLanguageEvaluate"][code] runs code in the brain language virtual machine. |
| "Refined" | remove all useless characters and standardize |
| "Operations" | output as virtual machine instruction |
| "Output" | default output |
| "OutputDebug" | output as an u8-array |
| "Normal" | do not make any extra escaping |
| "Chinese" | encode using "右左增减始终写读" |
| "Dao" | encode using "☴☳☱☶☰☷☲☵" |
| "周易" | encode using "巽震兌艮坤乾離坎" |
| "Ook" | encode using the esoteric language Ook |
Translate from default brain language to a text string:
| In[1]:= | ![]() |
| Out[1]= |
The output is assumed to be UTF-8 encoded, which can support all Unicode characters:
| In[2]:= | ![]() |
| Out[2]= |
Enter formatted source code:
| In[3]:= | ![]() |
Remove meaningless characters and convert to standard form:
| In[4]:= |
| Out[4]= |
Dump actual instructions:
| In[5]:= |
| Out[71]= | ![]() |
The default behavior is to display the output directly:
| In[72]:= |
| Out[72]= |
Specify a dialect, such as the esoteric language Ook:
| In[73]:= | ![]() |
| Out[73]= |
Another dialect using octal digit encoding:
| In[74]:= | ![]() |
| Out[74]= |
If the evaluation does not halt, the entire session will be stuck. In this case, run the following code to reinitialize:
| In[75]:= |
| Out[75]= |
This work is licensed under a Creative Commons Attribution 4.0 International License