Commit Graph

63 Commits

Author SHA1 Message Date
Elara 703e55df04 Add the ability to ignore errors in ExprTags 2024-02-07 18:27:21 -08:00
Elara 958a25d559 Simplify variadic function support and add a test for it 2024-01-24 22:33:47 -08:00
Elara 9bf56b50a4 Add support for variadic functions 2024-01-18 23:42:18 -08:00
Elara 25037db86a Remove old GPL header from the PEG file 2024-01-03 02:47:36 +00:00
Elara 745b6c0e5f Add WriteOnSuccess option 2023-12-28 07:19:58 -08:00
Elara 1634724260 Add MustGetTemplate and ExecuteTemplate functions 2023-12-27 19:38:59 -08:00
Elara b6c177c3d2 Regenerate parser 2023-12-22 19:30:07 -08:00
Elara a8023be2e2 Fix else/elif tags for nested if statements 2023-12-22 19:15:56 -08:00
Elara d618e7b0da Fix valueToString for end tags and expressions 2023-12-22 19:00:33 -08:00
Elara 3879e207fc Return an error if we encounter an unknown operator 2023-12-22 15:45:28 -08:00
Elara 4309bcc3b4 Implement != operator in expression evaluator 2023-12-22 15:43:49 -08:00
Elara 687e0a6c36 Fix != operator 2023-12-22 15:41:07 -08:00
Elara 7f9286f5c7 Clarify branch in performWhitespaceMutations 2023-12-21 21:02:53 -08:00
Elara ce71befee8 Add the ability to execute struct field functions 2023-12-21 21:01:15 -08:00
Elara f4307541c4 Add the ability to disable whitespace mutations 2023-12-18 11:59:39 -08:00
Elara da0b1ebb52 Fix tests for new error handling system 2023-12-18 09:21:44 -08:00
Elara a465be6cf8 Switch to MPL-2.0 to allow static linking 2023-12-18 09:16:33 -08:00
Elara 74b4607c63 Update the `len` function's description 2023-12-18 01:01:34 +00:00
Elara 01047706b6 Rewrite error handling logic 2023-12-17 16:55:13 -08:00
Elara ba23bf512c Add FUNDING.yml 2023-12-16 00:14:31 +00:00
Elara f7097ad9ce Remove mention of salixmd until yuin/goldmark#426 is resolved 2023-11-04 10:17:11 -07:00
Elara 6c23c75906 Add some tests 2023-11-03 23:36:41 -07:00
Elara 979e7aa33e Implement in operator for maps 2023-11-03 18:33:41 -07:00
Elara da8391fc37 Update table of contents 2023-11-03 18:28:30 -07:00
Elara 9af02875c3 Use the added logo svg in the README 2023-11-03 23:58:53 +00:00
Elara 2a035088aa Add logo svg to repo 2023-11-03 16:57:41 -07:00
Elara 52c0724174
Add logo 2023-11-03 23:00:31 +00:00
Elara ba986b9c23 Ensure non-nil maps 2023-11-01 12:04:54 -07:00
Elara 4530664371 Use map[string]any for vars 2023-11-01 12:00:44 -07:00
Elara 38420f5c6a Allow setting escapeHTML for an entire namespace 2023-11-01 11:39:28 -07:00
Elara e68190ca6a Use buffered writer 2023-11-01 11:31:51 -07:00
Elara 2d8cbeb1bc Add markdown section to README ToC 2023-11-01 00:19:08 -07:00
Elara a85434699a Add note about salixmd 2023-10-31 21:48:20 -07:00
Elara 41bae561e8 Re-generate parser 2023-10-31 21:38:24 -07:00
Elara 9a0a20da66 Add ExecuteToMemory function to TagContext 2023-10-31 21:27:01 -07:00
Elara a942ceae20 Add more information about the syntax to the README 2023-10-31 18:11:16 -07:00
Elara 9b15d2a7dd Implement string concatenation 2023-10-31 15:49:00 -07:00
Elara 82e81ec7f4 Add recursion example 2023-10-31 14:05:21 -07:00
Elara 236e178cea Add variable assignment 2023-10-31 13:45:00 -07:00
Elara ee4aa95dc3 Remove macro mutex as it's no longer needed 2023-10-31 08:02:29 -07:00
Elara 2a87e4781c Pass template as value 2023-10-30 21:18:35 -07:00
Elara 69e515326f Make macros per-template-execution 2023-10-30 21:06:17 -07:00
Elara 17906cf329 Add macro tag 2023-10-30 20:07:57 -07:00
Elara 3eca240b56 Add GPL headers 2023-10-30 18:43:18 -07:00
Elara e01755bbf5 Move ast and parser out of internal 2023-10-30 18:38:53 -07:00
Elara 7e307d8811 Improve error handling in expressions 2023-10-30 17:16:45 -07:00
Elara dce4ee2e8f Implement modulo operation 2023-10-30 16:59:37 -07:00
Elara 41adf9ce51 Properly parse negative numbers 2023-10-30 15:10:55 -07:00
Elara a8d536c058 Use ternary in replybot example 2023-10-30 15:05:33 -07:00
Elara 136e8cb26e Improve expression handling and add parentheses support 2023-10-30 15:02:41 -07:00