Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Isolate code structures
ResourceFunction["CodeCases"][File[filename], case] gives a list of all cases of code in filename identified as being of type case. | |
ResourceFunction["CodeCases"]["string", case] gives a list of all cases of code in the program given by string identified as being of type case. |
IfStmt | An if statement |
WhileStmt | A while statement |
DoStmt | A do statement |
GotoStmt | A goto statement |
DeclStmt | A declaration |
Isolate the if statements from a C source file:
In[1]:= |
Out[2]= |
Isolate the function calls from a C source file:
In[3]:= |
Out[3]= |
Isolate the identifiers from a C source file:
In[4]:= |
Out[4]= |
Isolate the declarations from a C program:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License