You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arthur Caputo edited this page May 11, 2016
·
1 revision
Varse C++
Welcome to the Varse wiki!
Varse is a C++ library for string parsing (mostly for run-time arguments) that is very easy to setup and use.
In this wiki, the articles will cover Setup, Compiling, and Usage.
Example
Varse comes with an example executable that gets two numbers from the program's arguments. If no argument is found, the values (named width and height) will be defaulted to 800 and 600, respectively. To test the software, run it with the following line:
example -w 1280 -h 720
Varse works by setting tokens and associating them to functions of a determined type.
in this case, -w is a token associated with a lambda function that overwrites the value of width. Same goes for -h.