Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | *: use squareball error infrastructure | Rafael G. Martins | 2016-03-13 | 1 | -95/+95 |
| | |||||
* | build: replace src/utils with squareball | Rafael G. Martins | 2016-02-26 | 1 | -40/+40 |
| | |||||
* | template-parser: added whitespace cleaners. needs more tests and docs | Rafael G. Martins | 2016-01-14 | 1 | -14/+34 |
| | |||||
* | 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 | -1/+73 |
| | |||||
* | man: renderer: template-parser: added foreach iterator support | Rafael G. Martins | 2015-12-29 | 1 | -7/+114 |
| | |||||
* | Revert "build: removing src/utils and replacing with squareball" | Rafael G. Martins | 2015-12-23 | 1 | -31/+31 |
| | | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646. | ||||
* | build: removing src/utils and replacing with squareball | Rafael G. Martins | 2015-12-23 | 1 | -31/+31 |
| | | | | | 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 | -3/+3 |
| | | | | | | | | | | | | | | | 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. | ||||
* | error: improved error reporting for parsers | Rafael G. Martins | 2015-10-24 | 1 | -18/+29 |
| | | | | it will now report the line and the approximate position of the error. | ||||
* | tempalte-parser: added tests with \r\n line endings | Rafael G. Martins | 2015-10-22 | 1 | -0/+71 |
| | |||||
* | fixed copyright | Rafael G. Martins | 2015-05-25 | 1 | -1/+1 |
| | |||||
* | template-parser: convert "if" operator into enum | Rafael G. Martins | 2015-05-17 | 1 | -3/+3 |
| | |||||
* | template-parser: minor fixes. tests | Rafael G. Martins | 2015-05-17 | 1 | -2/+36 |
| | |||||
* | template-parser: added real if statements. ignored by renderer for now | Rafael G. Martins | 2015-05-17 | 1 | -3/+38 |
| | |||||
* | template-parser: if -> ifdef, if not -> ifndef | Rafael G. Martins | 2015-05-17 | 1 | -41/+25 |
| | |||||
* | added global variable support | Rafael G. Martins | 2015-04-27 | 1 | -102/+35 |
| | |||||
* | template parser: added more tests | Rafael G. Martins | 2015-04-23 | 1 | -0/+406 |
| | |||||
* | template parser: added "if not" support | Rafael G. Martins | 2015-04-23 | 1 | -6/+15 |
| | |||||
* | refactored blocks | Rafael G. Martins | 2015-04-21 | 1 | -18/+18 |
| | | | | | | | | | - 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. | ||||
* | error: added tests | Rafael G. Martins | 2015-04-19 | 1 | -0/+1 |
| | |||||
* | fix test | Rafael G. Martins | 2015-04-19 | 1 | -2/+2 |
| | |||||
* | added loader, error handling and cli. tests needed | Rafael G. Martins | 2015-04-18 | 1 | -2/+7 |
| | |||||
* | replaced leg-based parser with handmade parser for templates | Rafael G. Martins | 2015-04-17 | 1 | -0/+222 |
yay! no leg parser needed anymore. parsers still needs some work and error handling, though. |