/* * * Copyright 2023 Oleg Borodin * */ #include #include #include #include int main(int argc, char** argv) { (void)argc; (void)argv; char* arg = "--qwerty=-num-12345"; cllexer_t lex; cllexer_init(&lex, arg); char token[1024]; int toktype = TOKEN_NULL; int i = 0; while (toktype != TOKEN_ENDF) { toktype = cllexer_gettok(&lex, token); printf("test cllexer_gettok res: %d: %d [%s]\n", i, toktype, token); i++; } return 0; }