![]() |
ArkScript
A small, lisp-inspired, functional scripting language
|
replxx utilities More...
#include <vector>#include <string>#include <replxx.hxx>Go to the source code of this file.
Namespaces | |
| namespace | Ark |
| namespace | Ark::internal |
Functions | |
| long | Ark::internal::countOpenEnclosures (const std::string &line, char open, char close) |
| Count the open enclosure and its counterpart: (), {}, []. | |
| void | Ark::internal::trimWhitespace (std::string &line) |
| Remove whitespaces at the start and end of a string. | |
| std::vector< std::string > | Ark::internal::getAllKeywords () |
| Compute a list of all the language keywords and builtins. | |
| std::vector< std::pair< std::string, replxx::Replxx::Color > > | Ark::internal::getColorPerKeyword () |
| Compute a list of pairs (word -> color) to be used for coloration by the REPL. | |
| replxx::Replxx::completions_t | Ark::internal::hookCompletion (const std::vector< std::string > &words, const std::string &context, int &length) |
| void | Ark::internal::hookColor (const std::vector< std::pair< std::string, replxx::Replxx::Color > > &words_colors, const std::string &context, replxx::Replxx::colors_t &colors) |
| replxx::Replxx::hints_t | Ark::internal::hookHint (const std::vector< std::string > &words, const std::string &context, int &length, replxx::Replxx::Color &color) |