Re: Query Parser Callstack

2014-09-02 Thread Kagamin via Digitalmars-d-learn
You can try to create an exception and get stack trace from it. The functionality is in druntime.

Re: Query Parser Callstack

2014-09-02 Thread Gary Willoughby via Digitalmars-d-learn
On Monday, 1 September 2014 at 21:00:46 UTC, Nordlöw wrote: Are there some nice traits or internals to query the current call stack for address or perhaps even their (mangled) names. I'm mostly interested in using this to detect infinite recursions in my recursive descent parser. This provided

Re: Query Parser Callstack

2014-09-02 Thread Nordlöw
On Tuesday, 2 September 2014 at 18:10:19 UTC, Gary Willoughby wrote: I've no idea how it is used but '_d_traceContext' might be of use: Ok, thanks. I just realized that http://code.dlang.org/packages/backtrace-d might be of use here aswell.

Query Parser Callstack

2014-09-01 Thread Nordlöw
Are there some nice traits or internals to query the current call stack for address or perhaps even their (mangled) names. I'm mostly interested in using this to detect infinite recursions in my recursive descent parser. This provided that my parser slice hasn't changed since last call to the