Debian Codegraph @

documentation/manual/grammar/poly/parser/parser.ih

raw
1 // Generated by Bisonc++ V5.00.00 on Thu, 07 Apr 2016 13:28:57 +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(char const *msg)
10 {
11 std::cerr << msg << '\n';
12 }
13
14 inline void Parser::error()
15 {
16 std::cerr << "syntax error\n";
17 }
18
19 // $insert lex
20 inline int Parser::lex()
21 {
22 return d_scanner.lex();
23 }
24
25 inline void Parser::print()
26 {
27 print_(); // displays tokens if --print was specified
28 }
29
30 inline void Parser::exceptionHandler(std::exception const &exc)
31 {
32 throw; // re-implement to handle exceptions thrown by actions
33 }
34
35
36 // Add here includes that are only required for the compilation
37 // of Parser's sources.
38
39
40
41 // UN-comment the next using-declaration if you want to use
42 // int Parser's sources symbols from the namespace std without
43 // specifying std::
44
45 using namespace std;