Debian Codegraph @

documentation/manual/demos/calc/parser/Parser.ih

raw
1 // Generated by Bisonc++ V5.00.00 on Wed, 06 Apr 2016 12:25:45 +0530
2
3 // Include this file in the sources of the class Parser.
4
5 // $insert class.h
6 #include "Parser.h"
7
8
9 inline void Parser::error()
10 {
11 std::cerr << "Syntax error\n";
12 }
13
14 inline void Parser::print()
15 {
16 print_(); // displays tokens if --print was specified
17 }
18
19 inline void Parser::exceptionHandler(std::exception const &exc)
20 {
21 throw; // re-implement to handle exceptions thrown by actions
22 }
23
24
25 // Add here includes that are only required for the compilation
26 // of Parser's sources.
27
28
29
30 // UN-comment the next using-declaration if you want to use
31 // int Parser's sources symbols from the namespace std without
32 // specifying std::
33
34 //using namespace std;