Commit Graph

177 Commits

Author SHA1 Message Date
pantor
73a40cf1b1 fix mac os x callback without parent bug 2018-03-20 16:36:11 +01:00
pantor
cfa0e5cbfe fix old xcode tests 2018-03-19 18:34:35 +01:00
pantor
e38df0931f Fix line statements 2018-03-19 12:20:12 +01:00
pantor
561f8cf59e Catch some errors for conditional parsing 2018-03-19 11:43:19 +01:00
pantor
1766793fd5 Allow index in nested loops 2018-03-19 11:09:23 +01:00
pantor
776af96b0b Use callbacks without parameters either with or without parenthesis 2018-03-19 10:46:49 +01:00
pantor
b68f745866 added is_last == false test 2018-03-19 10:37:55 +01:00
pantor
cd43573c0e add not is_last test 2018-03-19 10:33:37 +01:00
pantor
44f7461a8a allow empty lists for loops 2018-03-19 10:30:26 +01:00
pantor
b458ed576d pass json data as reference 2018-03-16 10:24:27 +01:00
Ludek Vodicka
f67767a6b2 Fixed warning in 64-bit windows build (#24)
* Fixed passing callback arguments as reference

* Another passing as const reference instead of new instance

* Implemented variable number of parameters
-  extended function "function_regex" to pass minimum and maximum parameters. if minimum=maximum, all params are required, if minimum = 0, all params are optional.....
- for single parameter there is different regex (created by the same function_regex function) to allo read sort([1,2,3]) as one parameter
- extended Match to test if group is valid, so only valid params are filled to params vector
- new function arguments_count to test number of arguments passed to callback

* unit tests for updated callbacks with variable number of params

* merge with last version

* Optimized passing arguments as const reference

* Fixed warning on 64-bit windows (conversion from 'size_t' to 'int', possible loss of data)
v0.1.0 v1.0.0
2018-03-09 14:43:56 +01:00
pantor
6da37615ef fix global path test 2018-03-07 16:54:23 +01:00
pantor
98506f355a add meson build for testing 2018-03-07 15:24:58 +01:00
pantor
904074c9a8 fix test for loop error message 2018-03-01 14:47:20 +01:00
pantor
99d3cd1ddf better loop error message 2018-03-01 14:36:09 +01:00
pantor
6f7fad983d add float and int string conversion 2018-03-01 11:29:56 +01:00
Ludek Vodicka
6e5167d68b Another optimization of passing arguments as reference (#23)
* Fixed passing callback arguments as reference

* Another passing as const reference instead of new instance

* Implemented variable number of parameters
-  extended function "function_regex" to pass minimum and maximum parameters. if minimum=maximum, all params are required, if minimum = 0, all params are optional.....
- for single parameter there is different regex (created by the same function_regex function) to allo read sort([1,2,3]) as one parameter
- extended Match to test if group is valid, so only valid params are filled to params vector
- new function arguments_count to test number of arguments passed to callback

* unit tests for updated callbacks with variable number of params

* merge with last version

* Optimized passing arguments as const reference
2018-03-01 11:19:21 +01:00
pantor
097ebf1f90 fix search_closed_on_level if nothing was found 2018-02-28 12:42:39 +01:00
pantor
07b49af6a4 add readme plural line statements 2018-02-28 12:01:14 +01:00
lbersch
92241617c2 Merge pull request #21 from ludekvodicka/patch-2
Fixed set_* methods
2018-02-28 11:36:03 +01:00
lbersch
e90e849a5e Merge branch 'master' into patch-2 2018-02-28 11:35:51 +01:00
lbersch
833a7226fe Merge pull request #20 from ludekvodicka/patch-1
Fixed typo
2018-02-28 11:35:01 +01:00
Ludek Vodicka
08b1245f5b Fixed set_* methods 2018-02-26 13:04:36 +01:00
Ludek Vodicka
aafd86b80c Fixed typo
set_line_statements vs set_line_statement
2018-02-26 12:43:51 +01:00
pantor
f7e0fa1c68 fix throw test 2018-02-24 17:45:29 +01:00
pantor
7e32e8bcfe use central throw function 2018-02-24 14:50:38 +01:00
pantor
86f310038d code cleaning 2018-02-24 12:48:26 +01:00
pantor
2ae161b4bd make renderer private in env 2018-02-23 23:47:09 +01:00
pantor
e522903440 move json parsing and element_notation in parser 2018-02-23 20:26:01 +01:00
pantor
c29fd9189d allow callbacks with the same name but different number of arguments 2018-02-23 20:07:04 +01:00
pantor
49b396c20b sort code where it makes sense 2018-02-23 19:46:26 +01:00
lbersch
8f1ac50117 Merge pull request #14 from ludekvodicka/master
Removed unused variable to remove compiler warnings
2018-02-23 17:00:47 +01:00
LUDA-PC\ludek.vodicka
2cc9ba2562 Removed unused "exception" variable to remove compiler warnings (warning C4101: 'exception': unreferenced local variable) 2018-02-23 15:47:39 +01:00
pantor
c5ea89c87e correct write template 2018-02-23 15:45:34 +01:00
Ludek Vodicka
179f31e2bb Merge pull request #1 from pantor/master
update
2018-02-23 15:32:00 +01:00
lbersch
b6d464a153 Merge pull request #11 from ludekvodicka/master
Few more warnings fixes
2018-02-23 15:24:13 +01:00
pantor
221b59d364 use at for json pointer, fix errors 2018-02-23 14:51:48 +01:00
pantor
08a79d6e7c replace all string += with append 2018-02-23 14:34:58 +01:00
pantor
bd4c56bf67 set inja release version to 1.0.0 2018-02-23 12:51:52 +01:00
pantor
4d0ceda62d add meson build interface to readme 2018-02-23 12:49:47 +01:00
pantor
577301773d add version definitions 2018-02-23 12:44:21 +01:00
pantor
ffe25364c0 add copyright header to inja.hpp 2018-02-23 12:43:07 +01:00
pantor
9400226ebd add meson build interface 2018-02-23 12:42:59 +01:00
LUDA-PC\ludek.vodicka
8f4cec2b2d Optimization of json params as const-reference instead of creating new json object 2018-02-23 12:22:29 +01:00
LUDA-PC\ludek.vodicka
85586245a5 Few more warnings fixes 2018-02-23 11:58:40 +01:00
pantor
74ad4281ed fix render file/template bug 2018-02-20 10:20:26 +01:00
pantor
a6f9911d3a try clang 5 2018-02-19 23:16:56 +01:00
pantor
effbfe09c3 try clang 4 2018-02-19 23:07:50 +01:00
pantor
44da70da1a fix data in readme doc 2018-02-19 22:45:00 +01:00
pantor
0e1d1d5084 badge appveyor master branch 2018-02-19 11:22:25 +01:00