2 ms·
I think the zonefile format is the one given in section 5 of https://tools.ietf.org/html/rfc1035 https://tools.ietf.org/html/rfc1035 It seems to be a straightf
by yorwba 9y ago
I think the zonefile format is the one given in section 5 of https://tools.ietf.org/html/rfc1035 https://tools.ietf.org/html/rfc1035
It seems to be a straightforward format for expressing tabular data using whitespace. I'm pretty sure that it was designed to be parsed using hand-written code iterating over an array of characters. Most formats that were defined by their implementation using a hand-written parser tend to be difficult to force into a grammar-based paradigm, because context-sensitivity is much easier to introduce when you write the parser yourself.
C is similarly difficult to parse with a grammar, since pointer declarations like char * ptr and multiplications like x * y are only distinguishable using context about the available types.