This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Offtopic: EBNF equivelant for describing bitstreams


On Thursday 12 December 2002 20:44, Jirka Kosek wrote:
> EBNF is not tied to any particular representation of underlying language
> (characters, bits, ...). If I remember it correctly from school years
> you can describe any context free grammar with EBNF. So if structure of
> your binary format can be described by context free grammar, you can use
> EBNF.

You have a point; a fairly good one. It might be valid to do something
like the following in EBNF:
	
	MyTwoBitBitstreamBlock ::= SingleBit SingleBit
	SingleBit ::= true | false
        false ::= 0
        true ::= 1
	
Thanks for your comment! It enhanced my understanding of EBNF limits.

 - Rowan van der Molen

-- 
Humbly they tried
Their faces fried
Burned by sunshine
Doing just fine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]