Commit Graph

28 Commits

Author SHA1 Message Date
Vladislav Navrocky
384a6bef3f Fix: Remove circular dependencies in headers (#295)
* Remove circular dependencies in headers

* Fix unit test includes and test data directory location
2025-02-11 09:03:42 +01:00
Matheus Werny
92994bec0a clang-tidy applied and CMake installation of the single header added (#287)
* Fixed headers and linter marks applied

Headers were wrong.
Applied some linter suggestions. There are still many left.

* CMake adjusted for single header

CMake can now install the single header.
Removed an unneeded header.

---------

Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com>
2024-10-05 09:36:11 +02:00
Yaraslau
f7160c405a fix extra ‘;’ after in-class function definition (#268) 2023-05-14 12:10:42 +02:00
Kubo Takehiro
d462b9f829 Fix issue 246 (#247)
* Add `parse_expression` with one argument in preparation to fix #246.

* Fix issue #246: `func(n1 + n2, n3)` runs as if `func(n1, n2 + n3)`

* Simplify parser for an expression enclosed by parentheses.
2022-12-04 11:28:04 +01:00
pantor
9f923b3677 add check for too few arguments in operator parser 2022-07-10 13:46:33 +02:00
pantor
eb04bfc7d3 clang-format 2021-11-12 08:35:56 +01:00
pantor
81cfa140e4 init LiteralNode with string view, code cleaning 2021-11-12 08:13:42 +01:00
pantor
120691339d rename json -> data 2021-11-10 12:53:27 +01:00
pantor
2239e231bc remove string view polyfill 2021-11-10 12:14:54 +01:00
pantor
cf71b54151 add include callback 2021-09-07 10:00:33 +02:00
pantor
12a2c9bbf2 unify json data type 2021-09-01 16:40:43 +02:00
pantor
99b85d69e7 remove headers in files, add central header 2021-07-25 14:24:49 +02:00
pantor
8d65633b6a add warnings for clang and fix them 2021-06-17 19:48:28 +02:00
pantor
95af782ca2 Add Child Inheritance Feature (#198)
* add block and extend feature

* constify, code cleaning

* update single include

* add html language to readme

* clean tests

* constantify, update year
2021-05-25 10:18:21 +02:00
Wim Leflere
b4b9d8dc16 Fix build warnings for Clang and MSVC (#197)
* remove unnecessary semicolons on function definitions

* add virtual destructor to base class

* fix possible loss of data warning for double to int conversion with explicit cast

* ignore Visual Studio build folder

Co-authored-by: Wim Leflere <wleflere@cochlear.com>
2021-05-20 12:40:57 +02:00
pantor
389c1d64f0 short circuit evaluation 2021-05-17 19:57:33 +02:00
pantor
4182c5dfa9 constantify 2020-08-08 13:59:35 +02:00
pantor
52a73410de fix codacy issues 2020-08-08 13:36:26 +02:00
pantor
0f38867cb0 further performance improvements 2020-08-04 22:42:59 +02:00
pantor
889da4da4f add set statements 2020-08-03 21:29:05 +02:00
pantor
02394683b1 fix single include 2020-07-26 13:16:45 +02:00
pantor
7529f21e63 dont copy strings into textnodes 2020-07-26 13:13:05 +02:00
pantor
c56cbd63e9 add atid operation 2020-07-26 12:52:36 +02:00
pantor
f4731061db fix strings in test, make more methods private 2020-07-15 20:51:00 +02:00
pantor
6eb71dd3ea Rewarite core with an AST for statements and RPN for expressions (#149)
* test

* improve ast

* add if statement

* shunting-yard start

* renderer as node visitor

* improve ast

* improve ast further

* first functions

* improve ast v3

* improve ast v4

* fix parser error location

* nested ifs

* fix comma, activate more tests

* fix line statements

* fix some more tests

* fix callbacks without arguments

* add json literal array and object

* use switch in expression

* fix default function

* fix loop data

* improved tests and benchmark

* fix minus numbers

* improve all

* fix warnings, optimizations

* fix callbacks argument order

* dont move loop parent

* a few more test

* fix clang-3

* fix pointers

* clean

* update single include
2020-07-13 15:20:04 +02:00
Lars Berscheid
bb613e29ba fix render error position in templates 2020-06-30 08:51:13 +02:00
pantor
d25a4de54f show location for render errors 2020-06-27 17:05:56 +02:00
pantor
0398edd419 code cleaning 2020-06-27 15:22:43 +02:00