Parse error with pa_bitstring

8 views
Skip to first unread message

Jessica Hamilton

unread,
May 9, 2009, 12:17:04 AM5/9/09
to bitstring
Hi,

I'm trying to use bitstring (and I'm sure it all worked in prev 1.9.9
version for me), and it's not working.

The error is:

File "kernel/networkProtocolStack.ml", line 7, characters 5-6:
Parse error: ":" expected after [patt] (in [patt_field])

The first few lines of my source code is as follows:

1.
2. (* The network protocol stack... *)
3.
4. let word bstring n =
5. bitmatch bstring with
6. | { word : n : bigendian } when word <= 0xFFFF_L -> Int64.to_int
word
7. | { _ } -> assert(false)
8.

I'm pretty sure line 7 is syntactically correct w.r.t. bitmatch.

Jessica

Jessica Hamilton

unread,
May 9, 2009, 2:48:48 AM5/9/09
to bitstring
Oh, I've just noticed another thread that covers this :P

On May 9, 4:17 pm, Jessica Hamilton <jessica.l.hamil...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages