ParseContextFromModelTokens parses tokenizer output with context support for cancellation.
(ctx context.Context, tokens []models.TokenWithSpan)
| 342 | |
| 343 | // ParseContextFromModelTokens parses tokenizer output with context support for cancellation. |
| 344 | func (p *Parser) ParseContextFromModelTokens(ctx context.Context, tokens []models.TokenWithSpan) (*ast.AST, error) { |
| 345 | preprocessed := preprocessTokens(tokens) |
| 346 | return p.parseContextTokens(ctx, preprocessed) |
| 347 | } |
| 348 | |
| 349 | // ParseWithPositions parses tokens with position tracking for enhanced error reporting. |
| 350 | // |