yecc bug
Martin Bjorklund
mbj@REDACTED
Fri Nov 24 12:05:12 CET 2000
Here's a small fix to parsetools/include/yeccpre.hrl which creates
better printouts for some parse errors:
95c95
< yecctoken2string({Cat, _, Val}) -> io_lib:format('~w', [Val]);
---
> yecctoken2string({Cat, _, Val}) -> io_lib:format('~p', [Val]);
[also, it looks like this code is duplicated into yeccparser.erl -
that module should probably include yeccpre.hrl instead]
So you don't have to see:
../c_src/reg_proto.x:204 : syntax error before: [115,117,98,115,99,114,101,115]
/martin
More information about the erlang-questions
mailing list