Inter4ql  5.2
Parser.h
1 #ifndef __PARSER_H__
2 #define __PARSER_H__
3 
4 #include <fstream>
5 #include <iterator>
6 #include <string>
7 
8 #include "LineParser.tab.h"
9 
10 namespace Inter4ql {
11 
12  class Output;
13  class Exception;
14  class Scanner;
15  class Functions;
16 
19  class Parser {
20  public:
27  Parser(Inter4ql::Output *_o, std::istream* arg_yyin = 0, std::ostream* aarg_yyout = 0);
30  ~Parser();
36  void init(std::istream* arg_yyin = 0, std::ostream* aarg_yyout = 0);
42  private:
44  Inter4ql::Output *output;
45  Inter4ql::Scanner *scanner;
46  Inter4ql::LineParser *parser;
47 
48  };
49 }
50 
51 #endif
Parser(Inter4ql::Output *_o, std::istream *arg_yyin=0, std::ostream *aarg_yyout=0)
constructor
Definition: Parser.cc:15
~Parser()
destructor
Definition: Parser.cc:26
Scanner class, deriving from Flex generated class.
Definition: Scanner.h:17
Definition: Application.cc:37
Output class handles standard output of interpreter.
Definition: Output.h:12
Inter4ql::parser_line * parse()
parsing method
Definition: Parser.cc:40
Parser class, enclosure of generated GNU Bison LineParser class.
Definition: Parser.h:19
structure for handling lines from interpreter
Definition: Types.h:76
void init(std::istream *arg_yyin=0, std::ostream *aarg_yyout=0)
initalize of a parser
Definition: Parser.cc:31