ridencww / goldengine

Java implementation of Devin Cook's GOLD Parser engine
Other
35 stars 14 forks source link

Some grammar tables cannot be loaded #3

Closed ridencww closed 12 years ago

ridencww commented 12 years ago

When constructing an instance of the parser, an IllegalStateException is thrown when loading the CGT or EGT file. This can occur when the size of the tables exceed 128 items.

ridencww commented 12 years ago

There is a defect in the CGT object that is reading bytes from the file as signed bytes and not as unsigned bytes. Whenever the size of the table exceeds 127, the data is interpreted as a negative value.

Unit tests are being written and a fix will be committed in the next day or two.

ridencww commented 12 years ago

Committed fix to CGT/EGT file loading and built version 5.0.1.