E002
Error
Syntax and structure
E002 — A syntax error
The text reads, but not as the language: a missing brace, a stray word, an argument list that does not close. The message names what was expected and what was found.
What the compiler said
error[E002]: Expected `,` between arguments, got `Text` --> src/App.wf:3:14 | 3 | Text("a" Text("b") | ^^^^ = docs: https://webfluent.monzeromer.dev/errors/E002
The fix
Broken
page P(path: "/", title: "T", description: "D") {
Heading("Hello").h1
Text("a" Text("b")
}
Fixed
page P(path: "/", title: "T", description: "D") {
Heading("Hello").h1
Text("a") Text("b")
}
The message names what was expected and what was found, at the place the parser stopped. One file can report several: after an error the parser picks up again at the next declaration.
Each example is a whole program: it is all of src/App.wf in a project with no other .wf file (trying an example).
lints cannot lower it: it would ship a broken page.