GPUOcelot
Public Member Functions | Public Attributes

parser::Parser Class Reference

An interface that parses a text or binary file and generates an internal representation of a program. More...

#include <Parser.h>

Inheritance diagram for parser::Parser:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Parser ()
 Virtual destructor.
virtual void parse (std::istream &input, ir::Instruction::Architecture language=ir::Instruction::PTX)=0
 Parse a file, generating an internal representation of the program.

Public Attributes

std::string fileName
 Name of the file being parsed.

Detailed Description

An interface that parses a text or binary file and generates an internal representation of a program.


Constructor & Destructor Documentation

virtual parser::Parser::~Parser ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual void parser::Parser::parse ( std::istream &  input,
ir::Instruction::Architecture  language = ir::Instruction::PTX 
) [pure virtual]

Parse a file, generating an internal representation of the program.

Parameters:
inputThe stream being parsed
languageWhat is the language of the file being parsed?
Returns:
A module containing the the internal representation of the parsed program

Implemented in parser::PTXParser.


Member Data Documentation

Name of the file being parsed.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines