which throw an error in my case and have to delete the file anyways.
add the partial progress i did on parsing the regular expressions. super simple, did not advance much yet.
and more importantly, adds a test directory which we can use to create tests! take a look at testmain.cpp. I added a simple one for the thing you did. I'm not sure how is this gonna work in CLion but in theory you should get two executables, the normal main and one for testing which looks like this if runned:
csssaz project/build ‹regex_parser› » ./test/my_test
[some debugging]
===============================================================================
All tests passed (12 assertions in 2 test cases)
The large header file "catch.hpp" is just the test library, you can ignore it.
I might have broken some stuff changing the CMakeLists because I'm not entirely sure how they work properly and spent some time in getting it to work in my case. More specifically, I have to add the line set(CMAKE_CXX_FLAGS "-I/usr/local/opt/flex/include") in my case, which I think would not affect your environment at all but let me know!
This basically:
removes flexer.cpp from the repo since its dependant on the local machine: it contains some weird lines like
which throw an error in my case and have to delete the file anyways.
add the partial progress i did on parsing the regular expressions. super simple, did not advance much yet.
and more importantly, adds a test directory which we can use to create tests! take a look at testmain.cpp. I added a simple one for the thing you did. I'm not sure how is this gonna work in CLion but in theory you should get two executables, the normal main and one for testing which looks like this if runned:
The large header file "catch.hpp" is just the test library, you can ignore it.
I might have broken some stuff changing the CMakeLists because I'm not entirely sure how they work properly and spent some time in getting it to work in my case. More specifically, I have to add the line
set(CMAKE_CXX_FLAGS "-I/usr/local/opt/flex/include")
in my case, which I think would not affect your environment at all but let me know!