I have had an issue with OCaml related to stub generator returning:
“Exception End_of_file”
This was also discussed here:
I played around a bit and found that the common issue with my contribution and the above puzzle was a multi-command loop line, like so:
loop N read name:word(10) R:int
After changing that line of the stub generator to a single command, like so:
loop N read resistor:string(20)
And then the generator code for OCaml execute with no exception and printed a sample print string.