Skip to content

Instantly share code, notes, and snippets.

@yaqwsx
Created September 29, 2021 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaqwsx/14cc85dc2422338f22f425ad9d2c59e5 to your computer and use it in GitHub Desktop.
Save yaqwsx/14cc85dc2422338f22f425ad9d2c59e5 to your computer and use it in GitHub Desktop.
static const std::map< std::string, ModuleParser > parsers = {
{"universal", {
moduleReader, /** json::dict -> Module **/
connNameResolver, /** std::string -> std::option< int > **/
writeModule, /** Module -> json::dict **/,
connNameWriter, /** int -> std::string **/
}},
}
readRofibot /* (json::dict, Rofibot) -> Rofibot */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment