Related articles |
---|
multi threaded bison: yyerror stamas@ludens.elte.hu (2004-07-28) |
Re: multi threaded bison: yyerror johnmillaway@yahoo.com (John Millaway) (2004-08-05) |
Re: multi threaded bison: yyerror lfinsto1@gwdg.de (Laurence Finston) (2004-08-05) |
From: | stamas@ludens.elte.hu (Tamas Sarlos) |
Newsgroups: | comp.compilers |
Date: | 28 Jul 2004 12:22:03 -0400 |
Organization: | http://groups.google.com |
Keywords: | parse, parallel, question |
Posted-Date: | 28 Jul 2004 12:22:03 EDT |
Hi,
I'd like to upgrade my flex/bison generated parser to a multi threaded
(pthreads) parser. I know that I have to create a reentrant flex
wrapper and use %pure_parser in bison.
I need to stop parsing (and do some other things) whenever a syntax
error occurs. However yyerror(...) does not have any parameter which
would help to find out in which thread the syntax error occured. I
could use pthread_self() and associate the necessary data with the
thread id, but this solution seems somewhat awkward. Is there a better
way to do it?
Thanks in advance,
Tamas Sarlos,
Budapest, Hungary
Return to the
comp.compilers page.
Search the
comp.compilers archives again.