Click here to Skip to main content
15,895,667 members
Articles / Programming Languages / C++

Building a simple C++ script compiler from Scintilla and CINT

Rate me:
Please Sign up or sign in to vote.
4.74/5 (26 votes)
8 Jul 2006CPOL7 min read 154.4K   7.6K   85  
How to build a simple C++ script compiler from Scintilla and CINT.
// lib/dll_stl/iter.h

#include <iterator>
using namespace std;

#ifndef G__ITERATOR_DLL
#define G__ITERATOR_DLL
#endif

typedef input_iterator<int,long> input_iteratorX;
typedef forward_iterator<int,long> forward_iteratorX;
typedef bidirectional_iterator<int,long> bidirectional_iteratorX;
typedef random_access_iterator<int,long> random_access_iteratorX;

#if 1
input_iterator_tag iterator_category(const input_iterator<int,long>& x) {
  return input_iterator_tag();
}

output_iterator_tag iterator_category(const output_iterator& x) {
  return output_iterator_tag();
}

forward_iterator_tag iterator_category(const forward_iterator<int,long>& x) {
  return forward_iterator_tag();
}

bidirectional_iterator_tag 
iterator_category(const bidirectional_iterator<int,long>& x) {
  return bidirectional_iterator_tag();
}

random_access_iterator_tag
iterator_category(const random_access_iterator<int,long>& x) {
  return random_access_iterator_tag();
}
#endif

#ifdef __MAKECINT__
#pragma link C++ global G__ITERATOR_DLL;
#pragma link C++ all functions;
#pragma link C++ all classes;
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions