Tom Alexander
d9ce011113
Add implementation based on MathNumber.
4 years ago
Tom Alexander
df0ae05648
Start of implementation for serde_json but I'm going to change my approach.
...
The permutations are pretty intense, so I think I'm going to do the same design I did for comparison where I have a JsonNumber (but I'll call this one MathNumber and rename JsonNumber to ComparisonNumber), convert the types to that, and then do the math.
4 years ago
Tom Alexander
db11677b22
Implement addition for OwnedLiterals.
4 years ago
Tom Alexander
8ef3949a65
Fix float json to literal equality comparison by casting them both to float.
4 years ago
Tom Alexander
de5932b4c6
Fix bug in parsing order for literals.
4 years ago
Tom Alexander
2a89fd826e
Update tests to use templates instead of literal strings for string parameters.
4 years ago
Tom Alexander
d99aa44d8e
Add support for negative integers.
4 years ago
Tom Alexander
02bcefb75c
Remove outdated TODO.
4 years ago
Tom Alexander
03ff75b2de
Fix number comparison logic.
4 years ago
Tom Alexander
4d28120732
I have broken the comparison function.
4 years ago
Tom Alexander
5b656a44ad
For partial_cmp, convert OwnedLiterals into serde_json values.
4 years ago
Tom Alexander
a378d6e6f3
Add comparisons for json floats but not yet between OwnedLiterals and json.
4 years ago
Tom Alexander
978bbe6eb3
Implemented float literals for OwnedLiterals, not yet for serde_json.
4 years ago
Tom Alexander
8daa746da6
Initial structure for the perform_math_operation function.
4 years ago
Tom Alexander
6877e3d393
Add parser support for the math helper.
4 years ago
Tom Alexander
c5db1cea8f
Add a test case for the math helper and add else blocks to the select test.
4 years ago
Tom Alexander
c06cc61a07
Merge branch 'helper_select' into render
4 years ago
Tom Alexander
a937a12db6
Cleanup.
4 years ago
Tom Alexander
88887bff0f
Implemented early termination.
4 years ago
Tom Alexander
0fac063c8d
Implemented none and any, but I need to implement early termination.
4 years ago
Tom Alexander
f1b868ce33
I think I have the code for the select tag finished, but I haven't yet implemented any or none.
4 years ago
Tom Alexander
576d94780a
Implement a SelectContext for passing the select parameters and whether or not any comparison passed down exactly 1 level in the renderer.
4 years ago
Tom Alexander
b0b857147d
Implemented code to find out if any comparison checks inside a select are true.
4 years ago
Tom Alexander
ed38ce6a38
Unified the renderers for all the comparison helpers by moving their implementation to perform_comparison_check.
4 years ago
Tom Alexander
85d36fc516
Implemented perform_comparison_check to separate the comparison logic from the render code so that it can be used pre-rendering by the select helper.
4 years ago
Tom Alexander
f2740987ec
Add a parent to ParametersContext so we can chain parameters contexts for use with the select helper.
4 years ago
Tom Alexander
a61807d84c
Add parser support for select/any/none.
4 years ago
Tom Alexander
84c07b262c
Add a test for the select helper.
4 years ago
Tom Alexander
a749f91e8e
Ported over the comparison helpers to using the new tap function.
4 years ago
Tom Alexander
b35874f19e
Merge branch 'helper_sep' into render
4 years ago
Tom Alexander
78dad3273a
Remove $len from first helper since its not needed.
4 years ago
Tom Alexander
417466d17d
Implement the first and last helpers.
4 years ago
Tom Alexander
fdecdcb53b
Implemented the sep helper.
4 years ago
Tom Alexander
3fb91566bb
Implement get and tap functions.
4 years ago
Tom Alexander
3ef2facc92
Expanding the sep helpers test.
4 years ago
Tom Alexander
bb658284e6
Add a test for the sep helper.
4 years ago
Tom Alexander
d06fbea288
Remove unused code and clean up warnings.
4 years ago
Tom Alexander
4ab311c178
Merge branch 'into_context_element' into render
4 years ago
Tom Alexander
9b69ba7b09
Merge branch 'into_context_element_breadcrumb_tree' into into_context_element
4 years ago
Tom Alexander
e00f043c19
Merge branch 'there_and_back_again' into into_context_element_breadcrumb_tree
4 years ago
Tom Alexander
4e1259f1c7
All tests working.
4 years ago
Tom Alexander
865cba6f4e
Add a test proving that renamed variables are still equal, so its not just based on path.
4 years ago
Tom Alexander
4dee230780
Add some test cases for comparing equality on reference parameters.
4 years ago
Tom Alexander
b1a85165b0
All tests passing!
4 years ago
Tom Alexander
4789a7d931
Fix the same issue in the renderer.
4 years ago
Tom Alexander
09d015346c
Fixed a bug where I was failing to filter out pseudo elements during walking.
4 years ago
Tom Alexander
669a698575
Re-enable the ContextElement implementation for serde_json
4 years ago
Tom Alexander
422479bcf2
port over the remaining helpers.
4 years ago
Tom Alexander
8cbb31251c
port over the equals/not equals helpers.
4 years ago
Tom Alexander
c8de395038
Inline partials and blocks worked as-is.
4 years ago