我想使用從github編譯的preon(1.1版)來解析我從嵌入式C++應用程序獲得的消息。我在我的項目中包含了antlr 3.3完整版本。我定義的下列類作爲網絡消息的報頭: public class Header {
@BoundNumber(byteOrder = org.codehaus.preon.buffer.ByteOrder.BigEndian)
public M
據http://www.scribd.com/doc/8128172/Preon-Introduction, 前子可用於位解碼成一個枚舉表示這樣: // Reads a bit from the buffer, and interprets it as an enum value, // interpreting the number as its ordinal value. @BoundNum