clean up
- removed m_final member - parse_internal now takes a reference to a basic_json object to fill with data - header is automatically regenerated if re2c file is changed
This commit is contained in:
parent
f09df96742
commit
f874b5f0f8
3 changed files with 476 additions and 825 deletions
4
Makefile
4
Makefile
|
@ -16,7 +16,9 @@ json_unit: test/unit.cpp src/json.hpp test/catch.hpp
|
|||
$(CXX) -std=c++11 $(CXXFLAGS) $(FLAGS) $(CPPFLAGS) -I src -I test $< $(LDFLAGS) -o $@
|
||||
|
||||
# create scanner with re2c
|
||||
re2c: src/json.hpp.re2c
|
||||
re2c: src/json.hpp
|
||||
|
||||
src/json.hpp: src/json.hpp.re2c
|
||||
$(RE2C) -b -s -i --no-generation-date $< | $(SED) '1d' > src/json.hpp
|
||||
|
||||
# static analyser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue