Build a compact, self-contained Python templating engine (TinyJinja) that implements tokenization, parsing, and rendering sufficient to pass the provided test suite. Expose Environment, Template, TemplateSyntaxError, UndefinedError, and minimal Token/TokenStream, a lightweight Lexer, and a rendering path supporting basic expressions, for-loops, raw blocks, and deterministic error messages.