[][src]Crate hatter

Structs

Args
Env
Error
Tag
Template

Compiled HTML template.

Token

Enums

ErrorKind

What kind of error?

FnType
Jump

Error-ish that lets us abort what we're doing.

Stmt
Syntax
Value

Traits

Object
SyntaxTrait

Functions

compile

Compile source code into a Vec of Stmt, aka the AST.

eval

Eval a list of Stmts and return the last's Value.

natives
parse
print_error

Pretty-print an error message, complete with colors and the line in question.

render

Render source to a String.

scan

Scans source code and produces a list of Tokens.

specials

Type Definitions

NativeFn
Result
Scope

Name -> Val map

SpecialFn