| 110 | } |
| 111 | |
| 112 | void PrintHelp() |
| 113 | { |
| 114 | cout << "Commands:" << endl; |
| 115 | cout << " addfunc [decl] - adds a user function" << endl; |
| 116 | cout << " addvar [decl] - adds a user variable" << endl; |
| 117 | cout << " delfunc [name] - removes a user function" << endl; |
| 118 | cout << " delvar [name] - removes a user variable" << endl; |
| 119 | cout << " exec [script] - executes script statement and prints the result" << endl; |
| 120 | cout << " help - this command" << endl; |
| 121 | cout << " listfuncs - list functions" << endl; |
| 122 | cout << " listvars - list variables" << endl; |
| 123 | cout << " quit - end application" << endl; |
| 124 | } |
| 125 | |
| 126 | void print(const string &s) |
| 127 | { |
no outgoing calls
no test coverage detected