add sweet.i and some minor 'using' declarations

This commit is contained in:
Dick Hollenbeck 2011-01-17 11:37:18 -06:00
parent 2f211c6b9d
commit e849da1862
3 changed files with 34 additions and 0 deletions

View File

@ -33,6 +33,7 @@
//using namespace std; // screws up Doxygen
using namespace SCH;
using namespace LT; // tokens, enum T for LIB_TABLE
LIB_TABLE::LIB_TABLE( LIB_TABLE* aFallBackTable ) :

View File

@ -29,6 +29,7 @@
#include <sch_lib_table.h>
using namespace SCH;
using namespace PR; // tokens, enum T for SWEET_LEXER
#define MAX_INHERITANCE_NESTING 6 // no problem going larger

32
new/sweet.i Normal file
View File

@ -0,0 +1,32 @@
/**
* Interface Sweet
* is a Python interface file for SWIG. Languages other than Python can
* possibly also be supported with little addtional work.
*/
%module sweet
%{
#include <dsnlexer.h>
#include <sch_lib_table_lexer.h>
#include <sch_lib_table.h>
#include <sch_lpid.h>
#include <sweet_lexer.h>
#include <sch_part.h>
%}
%include "std_string.i"
%include "std_deque.i"
%include "utf8.h"
%ignore LINE_READER::operator char* () const;
%include "richio.h"
%include "dsnlexer.h"
//%include "sch_lib_table_lexer.h"
%include "sch_lpid.h"
%include "sch_lib.h"
%include "sch_lib_table.h"
%include "sweet_lexer.h"
%include "sch_part.h"