ScannerFactory Class Reference

#include <scanner.h>

List of all members.


Detailed Description

simple (static only) factory for lexical scanner creation

Definition at line 137 of file scanner.h.


Static Public Member Functions

static IScannercreateScanner (std::istream &input, std::string fileName)

Private Member Functions

 ScannerFactory ()

Constructor & Destructor Documentation

ScannerFactory (  )  [private]


Member Function Documentation

IScanner * createScanner ( std::istream &  input,
std::string  fileName 
) [static]

simple factory method

Parameters:
input stream to read from
fileName Name (or alias) of input file (which appears in error msgs)
Returns:
Return on heap allocated instance of scanner
Attention:
Caller is responsible to destroy scanner object.

Definition at line 296 of file scanner.cc.

Referenced by main(), and run().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Jul 4 18:33:18 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4