Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | *: fixed includes | Rafael G. Martins | 2016-07-07 | 1 | -4/+1 |
| | | | | | this refactoring was done with the help of the 'include-what-you-use' program. if this breaks the build for you, please report! | ||||
* | template-parser: fixed block scope | Rafael G. Martins | 2016-07-07 | 1 | -22/+41 |
| | | | | | this patch blocks some usage that is obviously wrong and that nobody would want to use, but that should be explicitly blocked by the parser. | ||||
* | template-parser: minor fix | Rafael G. Martins | 2016-07-03 | 1 | -1/+1 |
| | |||||
* | Revert "error: improved parser error reporting" | Rafael G. Martins | 2016-07-03 | 1 | -1/+1 |
| | | | | | | this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03. | ||||
* | error: improved parser error reporting | Rafael G. Martins | 2016-07-03 | 1 | -1/+1 |
| | | | | | | now it shows a visual indicator '^' pointing to the position of the error, in the line after the error message. should be helpful for users writing templates, if any. | ||||
* | template-parser: fixed error message | Rafael G. Martins | 2016-07-03 | 1 | -2/+2 |
| | |||||
* | template-parser: renderer: implemented 'else' support in templates | Rafael G. Martins | 2016-07-03 | 1 | -2/+29 |
| | | | | | | | | | yeah, this is stupid. after more than 320 commits and 26 releases, we finally support the 'else' statement in the template engine. I don't know if I'm dumb or what, but it took me that long to find a "simple" solution to this basic issue. yep, no more `{% ifdef FOO %}...{% endif %}{% ifndef FOO %}...{% endif %}` blocks. but seriously, who cares?! :/ | ||||
* | debug: move debug functions to separated file | Rafael G. Martins | 2016-06-25 | 1 | -65/+0 |
| | |||||
* | template-parser: added some ast debug | Rafael G. Martins | 2016-06-22 | 1 | -0/+65 |
| | |||||
* | remove squareball for good | Rafael G. Martins | 2016-04-27 | 1 | -1/+1 |
| | |||||
* | Revert "*: use squareball error infrastructure" | Rafael G. Martins | 2016-04-27 | 1 | -4/+4 |
| | | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4. | ||||
* | *: use squareball error infrastructure | Rafael G. Martins | 2016-03-13 | 1 | -4/+4 |
| | |||||
* | build: replace src/utils with squareball | Rafael G. Martins | 2016-02-26 | 1 | -21/+21 |
| | |||||
* | template-parser: added whitespace cleaners. needs more tests and docs | Rafael G. Martins | 2016-01-14 | 1 | -14/+85 |
| | |||||
* | fixed copyright | Rafael G. Martins | 2016-01-08 | 1 | -1/+1 |
| | |||||
* | template-parser: do not accept variables startins with numbers and _ | Rafael G. Martins | 2015-12-29 | 1 | -9/+10 |
| | |||||
* | man: renderer: template-parser: added foreach iterator support | Rafael G. Martins | 2015-12-29 | 1 | -1/+66 |
| | |||||
* | Revert "build: removing src/utils and replacing with squareball" | Rafael G. Martins | 2015-12-23 | 1 | -16/+16 |
| | | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646. | ||||
* | build: removing src/utils and replacing with squareball | Rafael G. Martins | 2015-12-23 | 1 | -16/+16 |
| | | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils | ||||
* | Allow {% if VALUE1 == VALUE2 %}, with two defines | Palmer Dabbelt | 2015-10-26 | 1 | -5/+18 |
| | | | | | | | | | | | | | | | I was surprised to see that blogc doesn't support testing for equality between two defined values, it just supports comparison between a variable and a constant string. I want to be able to compare two variables so I can build the same source with different "-D" argument on the command line to produce different outputs. This patch adds support for this pattern. I changed the parser to include the '"' at the beginning and end of a string, which allows the renderer to determine if the user passed in a string or a variable name. This is a bit hacky and causes some of the tests to fail -- these tests look at the string values coming out of the parser. I updated the tests to match the new behavior. | ||||
* | fixed copyright | Rafael G. Martins | 2015-05-25 | 1 | -1/+1 |
| | |||||
* | minor fixes | Rafael G. Martins | 2015-05-18 | 1 | -9/+9 |
| | |||||
* | renderer: implemented if statements | Rafael G. Martins | 2015-05-18 | 1 | -1/+1 |
| | |||||
* | template-parser: convert "if" operator into enum | Rafael G. Martins | 2015-05-17 | 1 | -22/+27 |
| | |||||
* | template-parser: minor fixes. tests | Rafael G. Martins | 2015-05-17 | 1 | -4/+13 |
| | |||||
* | template-parser: added real if statements. ignored by renderer for now | Rafael G. Martins | 2015-05-17 | 1 | -13/+123 |
| | |||||
* | template-parser: if -> ifdef, if not -> ifndef | Rafael G. Martins | 2015-05-17 | 1 | -38/+20 |
| | |||||
* | minor fixes for freebsd | Rafael G. Martins | 2015-04-28 | 1 | -1/+1 |
| | |||||
* | added global variable support | Rafael G. Martins | 2015-04-27 | 1 | -34/+12 |
| | |||||
* | template parser: added more tests | Rafael G. Martins | 2015-04-23 | 1 | -2/+2 |
| | |||||
* | template parser: added "if not" support | Rafael G. Martins | 2015-04-23 | 1 | -3/+31 |
| | |||||
* | refactored blocks | Rafael G. Martins | 2015-04-21 | 1 | -25/+29 |
| | | | | | | | | | - changed block names: - single_source -> entry - multiple_sources -> listing - multiple_sources_once -> listing_once - added -t cli option, to build listing pages, instead of guess it from the number of source files provided. | ||||
* | template parser: ignore single brackets | Rafael G. Martins | 2015-04-19 | 1 | -3/+1 |
| | |||||
* | safe mallocs are better :) | Rafael G. Martins | 2015-04-19 | 1 | -3/+3 |
| | |||||
* | added renderer, without tests | Rafael G. Martins | 2015-04-19 | 1 | -2/+9 |
| | |||||
* | added loader, error handling and cli. tests needed | Rafael G. Martins | 2015-04-18 | 1 | -17/+70 |
| | |||||
* | do not allow variables inside multiple_sources_once blocks | Rafael G. Martins | 2015-04-18 | 1 | -12/+29 |
| | |||||
* | removed unused variable | Rafael G. Martins | 2015-04-18 | 1 | -1/+0 |
| | |||||
* | replaced leg-based parser with handmade parser for templates | Rafael G. Martins | 2015-04-17 | 1 | -0/+296 |
yay! no leg parser needed anymore. parsers still needs some work and error handling, though. |