# blocks

URL: /kida/api/parser/blocks/
Section: blocks
Description: Block parsing and stack management for Kida parser.

Provides mixin for parsing block statements (if, for, def, etc.)
and managing block stack for unified {% end %} syntax.

---

> For a complete page index, fetch /kida/llms.txt.

Open LLM text
(/kida/api/parser/blocks/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fparser%2Fblocks%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fparser%2Fblocks%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fparser%2Fblocks%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fparser%2Fblocks%2Findex.txt)

Module

#
`parser.blocks`

Block parsing and stack management for Kida parser.

Provides mixin for parsing block statements (if, for, def, etc.)
and managing block stack for unified {% end %} syntax.

1Class

## Classes

`BlockParsingMixin`

0

▼

Mixin for parsing block statements.

Combines all block parsing mixins into a single class.

Requir…

Mixin for parsing block statements.

Combines all block parsing mixins into a single class.

Required Host Attributes:

- All from BlockStackMixin

- All from TokenNavigationMixin

- _parse_body: method

- _parse_expression: method

- _parse_primary: method

- _parse_call_args: method

- _parse_for_target: method

- _parse_tuple_or_name: method

- _parse_tuple_or_expression: method

- _skip_comment: method

- _get_eof_error_suggestion: method

- _parse_block_content: method
