Build tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.cc 498B

12345678910111213141516171819202122232425
  1. #include <unistd.h>
  2. #include <fstream>
  3. #include "SourceFile.h"
  4. #include "BBBParser.h"
  5. void readDir(std::string dir, std::vector<SourceFile> sources) {
  6. }
  7. int main(int argc, char **argv) {
  8. std::ifstream file("test.bbb");
  9. BBBParser parser(file, BBBParser::FLAG_NONE);
  10. BBBParser::Variables vars;
  11. parser.parse(vars);
  12. std::cout << "\nVariables found:\n";
  13. for (auto &kv: vars) {
  14. std::cout << kv.first << ":\n";
  15. for (auto &val: kv.second) {
  16. std::cout << "\t'" << val << "'\n";
  17. }
  18. }
  19. }