DNS.Zone.Parser (DNS v0.5.0)

View Source

A parser that converts DNS zone file tokens into an Abstract Syntax Tree (AST).

Works with DNSZoneLexer to parse complete DNS zone files into structured data.

Summary

Functions

Example usage with a sample DNS zone file.

Parses a DNS zone file string into an AST.

Parses a list of tokens into an AST.

Pretty prints the AST for debugging.

Tokenizes the input string into tokens (embedded lexer).

Functions

example()

Example usage with a sample DNS zone file.

parse(input)

Parses a DNS zone file string into an AST.

parse_tokens(tokens)

Parses a list of tokens into an AST.

tokenize(input)

Tokenizes the input string into tokens (embedded lexer).