| 144 | } |
| 145 | |
| 146 | void help(int n) { |
| 147 | if (n >= 0) { |
| 148 | std::cout << "ChaiScript evaluator. To evaluate an expression, type it and press <enter>." << std::endl; |
| 149 | std::cout << "Additionally, you can inspect the runtime system using:" << std::endl; |
| 150 | std::cout << " dump_system() - outputs all functions registered to the system" << std::endl; |
| 151 | std::cout << " dump_object(x) - dumps information about the given symbol" << std::endl; |
| 152 | } |
| 153 | else { |
| 154 | std::cout << "usage : chai [option]+" << std::endl; |
| 155 | std::cout << "option:" << std::endl; |
| 156 | std::cout << " -h | --help" << std::endl; |
| 157 | std::cout << " -i | --interactive" << std::endl; |
| 158 | std::cout << " -c | --command cmd" << std::endl; |
| 159 | std::cout << " -v | --version" << std::endl; |
| 160 | std::cout << " - --stdin" << std::endl; |
| 161 | std::cout << " filepath" << std::endl; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | std::string helloWorld(const std::string &t_name) |
| 166 | { |
nothing calls this directly
no outgoing calls
no test coverage detected