Debian Codegraph @

extras/swig/README_SWIG

raw
1
2 HIGHLIGHT SWIG INTERFACE GENERATION
3 -----------------------------------
4
5 SWIG (http://www.swig.org/) is a tool to generate interfaces for more than 10
6 programming languages, including Python, Perl, Java and C#.
7 The interface file highlight.i contains all information to generate wrapper code
8 for the highlight::CodeGenerator class. The output module gives you access to
9 the highlight parser from within your favorite (scripting) language.
10 See src/include/codegenerator.h for the library interface.
11
12
13 See the makefile how to compile Python, Perl or PHP modules:
14
15 1. make python
16 make perl
17 make php
18
19 2. Run the test scripts
20 python testmod.py (use 2.x interpreter)
21 perl -I . testmod.pl
22 php testmod.php