[antlr-interest] Antlr namespace

Mark Ryall mnr at cs.man.ac.uk
Tue Feb 19 13:07:31 PST 2002


Hi

In the examples it has basic form:

include files
ANTLR_USING_NAMESPACE(antlr)
functions

I am using VC++6.0 and I am having problems with the namespacing!

1. This is my header file, where does the namespace line go???
2. What about the cpp aswell??

#if
!defined(AFX_TREERUNNER_H__B9835BA7_E883_4291_BA0B_0F4C94BA8D00__INCLUDED_)

#define
AFX_TREERUNNER_H__B9835BA7_E883_4291_BA0B_0F4C94BA8D00__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <string>

class RPLFile;

class TreeRunner
{
public:
 TreeRunner();
 virtual ~TreeRunner();

 virtual void runnerRIP();
 virtual void runnerOSPF();
 virtual void parseFile( const std::string f );
 virtual void doTreeAction( const std::string f, RefAST t );

 virtual RPLFile* getOutput() const;

private:
 RPLFile* m_pFile;
};

Cheers

Mark


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list