[antlr-interest] Re: Making the C grammar in cgram.tgz
edcjones
edcjones at yahoo.com
Mon Mar 10 19:09:24 PST 2003
--- In antlr-interest at yahoogroups.com, mzukowski at y... wrote:
> Heh, I got a kick out of being called a Java / antlr newbie :) Zen
> Mind, Beginners Mind....
I was talking about myself. I program in Python, C, and C++. I am new
to Java and know little about compilers.
> CToken and LineObject aren't in packages, so "import CToken;" is
> correct.
When I uncommented the "import CToken;" in "GnuCParser.g", I got the error
GnuCLexer.java:27: '.' expected
import CToken;
^
1 error
make: *** [GnuCLexer.class] Error 1
> I'm curious to know what you want to build with my toolkit....
In the past I have wrapped the OpenCV image processing system so one
can call it from Python. I used SWIG. Recently Greg Ewing has invented
a new nearly Python language, Pyrex. Wrapping something using Pyrex
may be easier to automate than using SWIG.
The question is: To what extent is it possible to automate the
production of Python wrappers for complex systems of C code? I didn't
understand TXL. The flaky CPU in my computer wouldn't let me compile
Stratego (The machine is being replaced). So I am trying antlr.
So far, I am using antlr to help me with the preliminary stages of
doing the wrapping by hand.
Python
http://www.python.org/
SWIG
http://www.swig.org/
Pyrex
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
TXL
http://www.txl.ca/
Stratego
http://www.stratego-language.org/twiki/bin/view/Stratego/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list