From c1a2e56f4f6d79e2a6e38a44260d3672a8e24f10 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Mon, 30 Oct 2023 08:37:59 -0700 Subject: [PATCH] Add ternary expressions --- examples/include/tmpls/header.html | 4 +- internal/ast/ast.go | 11 + internal/parser/parser.go | 486 ++++++++++++++++++----------- internal/parser/salix.peg | 16 +- salix.go | 21 ++ 5 files changed, 352 insertions(+), 186 deletions(-) diff --git a/examples/include/tmpls/header.html b/examples/include/tmpls/header.html index fc1ff1e..c4786a2 100644 --- a/examples/include/tmpls/header.html +++ b/examples/include/tmpls/header.html @@ -10,10 +10,10 @@