#include #include #include struct action **table; size_t table_states; size_t total_symbols; int main(int argc, char **argv) { if(argc != 2) return 1; void *handle = dlopen(argv[1], RTLD_LAZY); if(!handle) { puts(dlerror()); return 1; } table = *(typeof(&table))dlsym(handle, "table"); table_states = *(typeof(&table_states))dlsym(handle, "table_states"); total_symbols = *(typeof(&total_symbols))dlsym(handle, "total_symbols"); table_print(); dlclose(handle); return 0; }