Suppose you're designing a protocol, and you're deliberating over whether to use XML, YAML, JSON, s-expressions (!) or some other data representation format for it.
The question you need to ask yourself is, "have I written an
EBNF definition for my protocol yet
(
Read more... )
Comments 30
Reply
Reply
I like michiexile's field-expedient solution: whiteboard markers and any mirrored surface.
Reply
Reply
Designing the grammar first might mean your grammar is less than well suited to the particular data format you then wish to pick or, indeed, illegal in that format.
Or have I completely missed the point?
I guess, I'm just thinking, if I do the EBNF then I can, for example, immediately rule out XML unless I secretly thought "I'll use XML" then did the EBNF and then decided -- in which case the EBNF case was merely a ponderous waste.
What am I not seeing? I think I *AM* intermingling data representation and protocol structure but I cannot see how NOT to do this using EBNF.
Reply
Reply
Reply
I guess my methodology would be to pick (say) XML, design the grammar to work in XML (using one of the XML definition thingums) with an eye on the eventual data structure in the code but not genuinely dictated by that. What do I gain by adding EBNF because it seems there is a lot to lose?
Reply
Ooo, stuff I've not dug into before. Fun!
*dives in*
Thank-you.
Reply
Reply
Reply
enochsmiles has finally browbeaten me into getting all my thoughts in order on the subject of language-theoretic security in general, to the end that we're now putting together a journal article on it. God knows how long that'll take, but it'll make his advisor happy.
Reply
Leave a comment