calc++ example driver::scan_*

2023-06-02 Thread lostbits
Bison.doc v3.8.1 I found the body for Driver::scan_begin and Driver::scan_end in scanner.ll. Shouldn't this be colocated with the Driver class source code? I (personally) have never seen the body of a class prototype function defined in any other location than the class source. Isn't this an

calc++ example

2023-06-01 Thread lostbits
bison v3.8.2 Win 7/10-x64 Driver.hh has class "driver" defined with scan_begin() and scan_end() defined but Driver.cc doesn't have the body for these functions.  Are these functions defined? Also in driver::parse (const std::string &f). "parse.set_debug_level (trace_parsing);"  is executed a

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

2006-07-03 Thread Hans Aberg
: Hans Aberg <[EMAIL PROTECTED]> To: Wang Yige <[EMAIL PROTECTED]> Subject: Re: another problem about the calc++ example Date: Mon, 3 Jul 2006 09:03:19 +0200 On 3 Jul 2006, at 05:33, Wang Yige wrote: ...when I try "flex -o calc++-scanner.cc calc++-scanner.ll" on my HP-Unix(Bison-

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: another problem about the calc++ example

2006-07-02 Thread Wang Yige
Hi, Thanks for your reply first:) I read the Flex manual and it defines yyin only stdio and FILE * type . I am a beginner of BISON and there is another problem. I copy the files of Calc++ examples on Bison manual: calc++.cc ,calc++-driver.cc ,calc++-driver.hh ,calc++-parser.yy, calc++-scanner