/** * This file is part of Gomu. * * Copyright 2016 by Jean Fromentin * * Gomu is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Gomu is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Gomu. If not, see . */ #include "init.hpp" extern "C"{ Gomu::Type types[]={ TYPE_SENTINEL }; //--- Functions ---// Gomu::Module::Function functions[]={ {"Integer","len",{"String"},(void*)string_len}, {"Integer","len",{"Array"},(void*)array_len}, FUNC_SENTINEL }; //--- Member functions ---// Gomu::Module::Function member_functions[]={ {"Integer","len",{"String"},(void*)string_len}, {"Array","types",{"Module"},(void*)module_types}, FUNC_SENTINEL }; //--- Contextual functions ---// Gomu::Module::Function contextual_functions[]={ {"Void","delete",{"Symbol"},(void*)del}, {"Void","execute",{"String"},(void*)execute}, {"Generic","operator=",{"Symbol","Generic"},(void*)assignment}, {"Array","symbols",{"Type"},(void*)symbols}, {"Type","type",{"Generic"},(void*)type}, FUNC_SENTINEL }; }