librelist archives

« back to archive

String Callback

String Callback

From:
Tim Glabisch
Date:
2013-08-13 @ 17:38
Hello,

 

The Jison Grammar expects the callback to be a string. This is very bad for
debugging because useable breakpoints are not really possible. is there a
way to use a lambda as calback?

 

_best,

T

Re: [jison] String Callback

From:
Zachary Carter
Date:
2013-08-13 @ 17:57
Hi Tim,

Unfortunately not, since the actions are concatenated together to build a
function dynamically. However, if you write the generated parser to a file
first you can use breakpoints on it.

-z


On Tue, Aug 13, 2013 at 10:38 AM, Tim Glabisch <tim@ainfach.de> wrote:

> Hello,****
>
> ** **
>
> The Jison Grammar expects the callback to be a string. This is very bad
> for debugging because useable breakpoints are not really possible. is there
> a way to use a lambda as calback?****
>
> ** **
>
> _best,****
>
> T****
>



-- 
Zach Carter