Re: Porting Bison-2.0 to EBCDIC host

2006-07-03 Thread Paul Eggert
Hans Aberg <[EMAIL PROTECTED]> writes: > On 3 Jul 2006, at 22:45, RichAnderson wrote: > >> I am attempting to port Bison 2.0 to a machine which uses the EBCDIC >> character set. This version of bison wants to use itself to rebuild >> parse-gram.y. It shouldn't want to do that, unless you've modif

Re: Porting Bison-2.0 to EBCDIC host

2006-07-03 Thread Hans Aberg
This is probably a question for the Bison Bugs list; followups, drop Help-Bison cc. On 3 Jul 2006, at 22:45, RichAnderson wrote: I am attempting to port Bison 2.0 to a machine which uses the EBCDIC character set. This version of bison wants to use itself to rebuild parse-gram.y. This assume

Re: Is there way to complete my Calculator with Bison or other GNU tools?

2006-07-03 Thread David Fang
> I want to encapsulate a C++ class ,which can works like a calculator,its > structure seems like this: > Class Calc > { > //in yylex, result will be evaluated... > > }; > In an other word, Can yylex ,yyparse() be encapsulated in a C++ Class ? Hi, "Can...". Yes, but you will nee

Is there way to complete my Calculator with Bison or other GNU tools?

2006-07-03 Thread Wang Yige
Hi everyone, I am a beginner of Flex and Bison and just know litter about them ,I need your help. I want to encapsulate a C++ class ,which can works like a calculator,its structure seems like this: Class Calc { public: Calc(){}; ~Calc(){}; void setExpr(char *cExpr){this->cExpr = cExpr;}

Porting Bison-2.0 to EBCDIC host

2006-07-03 Thread RichAnderson
I am attempting to port Bison 2.0 to a machine which uses the EBCDIC character set. This version of bison wants to use itself to rebuild parse-gram.y. This assumes that the existing version is the correct code set. I can't use 1.875 (which I have successfully ported), since it can't process the p

Re: another problem about the calc++ example | Thanks

2006-07-03 Thread Hans Aberg
Please keep the cc to the list, so others get to know the state of the matter. On 3 Jul 2006, at 10:48, Wang Yige wrote: Thank you very much for your "there should be no space after '-o'. " and I will consult my problem with help-flex . Thanks again:) From: Hans Aberg <[EMAIL PROTECTED

Re: another problem about the calc++ example

2006-07-03 Thread Hans Aberg
[As you did not cc he Help-Bison list, I have to resend. If want to have more replies and let other know the state of the matter, you should to send it to the Help-Bison or Flex lists.] On 3 Jul 2006, at 05:33, Wang Yige wrote: ...when I try "flex -o calc++-scanner.cc calc++-scanner.ll" on m

Re: about lr(1) parsers

2006-07-03 Thread Hans Aberg
On 3 Jul 2006, at 10:43, chinlu chinawa wrote: What I'm looking for is a parser, or as I understand it, a way in which I can define new keywords whilst being able to process them as well as any arguments it may take. Keywords, or hardwired names, are normally added in the lexer, which may be

Re: about lr(1) parsers

2006-07-03 Thread chinlu chinawa
>A LR(1) parser or parser generator? - The latter is >described in books like the one by Aho, et al. >"Compilers..." ("The Dragon Book"). You may also >want to consult the Usenet newsgroup comp.compilers, >and its FAQ published there monthly. Bison uses >LALR(1), and its manual gives examples of