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

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

Definition at line 296 of file

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