Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

program to auto-generate %(stack)/content comments

46 views
Skip to first unread message

luser- -droog

unread,
Jul 29, 2013, 2:54:36 AM7/29/13
to
Sorry, I don't have one yet. But has anybody thought about this?
It wouldn't be too hard for straight statements, but handling
lines in procedures might be tricky, I fear.

I actually had a start on this some time ago as part of the
debugger, but it's on that stupid sd card with everything
else from the other side of the rainbow...
(wasn't much of a start, just a /cstack function to print
the stack using =only, in fact ...

/cstack {
(%)print
count dup 1 add copy % count & make copy of stack (&count)
-1 1{
-1 roll
==only
( )print
} for
pop
} def

There. pretty much like that.)

luser- -droog

unread,
Apr 6, 2014, 9:58:41 PM4/6/14
to
Buttoning-up this thread for the archive.

See my answer to this TeX.Stackexchange question
for an example of using the debugger to produce
stack traces.

(this link gives me "announcer" brownie-points:)
http://tex.stackexchange.com/a/160503/21041

alternate link:
http://tex.stackexchange.com/questions/160246/how-to-automatically-generate-a-stack-diagram-for-a-postscript-expression/160503#160503

0 new messages