At 00.38 -0400 0-09-25, Dean Herington wrote: >And also lexer generators, apparently. After extending my lexer modestly >(I think), I now get: > >INTERNAL ERROR: Application parameter stack overflow > >from Hugs when trying to run Alex to generate a lexer. I haven't been >able to find any mention of internal errors in all the Hugs documentation >I've seen. Any ideas? Yes, I recognize the error, as I wrote it. :-) On MacHugs, just increase the stack by the -X command (check the :s console command). I would also suggest you to use the Heap Profiler, together with the excellent ho2ps port provided by Pablo Azero. You automatically get PS files, which you can view using MacGS PPC ftp://ftp.cs.wisc.edu/pub/ghost/aladdin/gs550/mac/, or convert them to PDF using this program before viewing them in Adobe Acrobat. This way you can get a good idea of what memory resources you are using, and to some extent get hints about stack allocation, as this is caused by recursive function calls that consume heap memory. (If a recursive function call does not consume heap memory, it can be eliminated on the stack with a so called tail-recursive evaluator, even though I do not know if Hugs is doing that.) Hans Aberg
