<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 14pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Sothy, you need to specify the grammar at the byte level. You can union bit patterns together, however.</p>
<p>On 2017-09-27 15:35, sothy shan wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi,</div>
I need to parse 4 bytes of data and some bits of data has valid information.</div>
How can I go with Ragel?</div>
I am going to use Ragel with  C++.<br /><br /></div>
Best regards</div>
Sothy<br /><br /></div>
<br />
<pre>_______________________________________________
ragel mailing list
<a href="mailto:ragel@colm.net">ragel@colm.net</a>
<a href="http://www.colm.net/cgi-bin/mailman/listinfo/ragel">http://www.colm.net/cgi-bin/mailman/listinfo/ragel</a>
</pre>
</blockquote>
</body></html>