I've used Matlab (this is the easiest language for me) to generate a Lua dissector from an XML file describing a protocol. The issue right now, is that it is generating too many local (global) variables and I'm getting the
error. Many of the variables (~150) are due to some enumeration. Any suggestion how to solve it? asked 10 Aug '17, 01:27 BMWE edited 10 Aug '17, 01:39 sindy |
One Answer:
I realize this is an old question on a now-obsolete Q&A site, but in case anyone finds themselves in this situation, one solution is to group variables together into a Lua table. For example, instead of:
use something like:
answered 31 Jul '18, 09:15 cmaynard ♦♦ |
@BMWE, I've converted your post to a new Question as this way it better fits this site's purpose.
To the subject, what means "some enumeration"? If your protocol has 150 distinct fields, there is no surprise that 150 variables get created. If that is not the case, please provide some more details.