virtan / cppei

C++ erlang term format interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPPEI

// under development

C++ bindings for EI (Erlang Interface)

Example:

using namespace std;
using namespace cppei;

int main() {
    cint >> length4;
    cout << length4;
    while(true) {
        term_t t;
        cin >> t;
        atom_t a("service_1");
        binary_t b;
        if(tuple(a, b) = t) {
            cout << tuple(atom_t("echo"), b);
        }

    }
}

About

C++ erlang term format interface


Languages

Language:C++ 100.0%