Something went wrong. Try again.
A component based functional template language
Something went wrong. Try again.
2.1 kB 76 lines
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 $ NO_COLOR="1" print_vm ./empty_template_expression.pi Component <div class="Section"> </div> WARNING in file ./empty_template_expression.pi:4:5-7 3 │ <div class="Section"> 4 │ {} │ ^^ 5 │ </div> Expected to see an expression between these braces. This is currently not doing anything, so you can safely remove it. If you wanted to have an empty record here, you need to write `{{}}`
$ NO_COLOR="1" print_vm ./let_without_expression.pi Component ERROR in file ./let_without_expression.pi:2:3-15 1 │ template Component { 2 │ let fail = ; │ ^^^^^^^^^^^^ 3 │ Expected expression as right hand side of let declaration [1]
$ NO_COLOR="1" print_vm ./mutation_without_expression.pi Component ERROR in file ./mutation_without_expression.pi:3:3-12 2 │ let mutable fail = ""; 3 │ fail := ; │ ^^^^^^^^^ 4 │ Expected expression as right hand side of mutation statement [1]
$ NO_COLOR="1" print_vm ./string_interpolation.pi Component ERROR in file ./string_interpolation.pi:4:25-27 3 │ 4 │ <div class="Section $(if fail "A" else "B")"> │ ^^ 5 │ {fail} Only lowercase identifiers are allowed as string interpolation placeholders. If you want to use more complex constructs, you can always assign them to a let binding. [1]
$ NO_COLOR="1" print_vm ./tag_key.pi Component ERROR in file ./tag_key.pi:2:27-35 1 │ template Component { 2 │ let fail = #String(key: "f.#ail"); │ ^^^^^^^^ 3 │ Tag keys may only contain ASCII characters (a-Z), numbers (0-9) and underscores (_). [1]
$ NO_COLOR="1" print_vm ./let_and_without_function.pi Component ERROR in file ./let_and_without_function.pi:2:11-12 1 │ template Component { 2 │ let a = 1 and b = 2; │ ^ 3 │ } All expressions in `let ... and` declarations must be function definitions [1]