[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: C++ output
John,
There is no "simple" way to do this persay, however, the solution is rather simple. Most, if not all, of the class generation code is located in the ../SNACC/compiler/back-ends/c++/gen-code.c file. You could easily do a search and replace for "class" to make it "public class". I assume if your current compiler/requirement doesn't like the generated code without the 'public' descriptor, then it probably doesn't like the library code without the 'public' descriptor either. Because of this, you'll probably have to do one of two things:
1) Manually change all 'class' to 'public class'
or
2) Write a script/ Global search and replace to change 'class' to 'public class'
May I inquire as to why this is one of your requirements? It sounds interesting to me.
Regards,
Joe
-----Original Message-----
From: owner-imc-snacc@xxxxxxxxxxxx on behalf of John Hodgkinson
Sent: Thu 1/19/2006 10:51 AM
To: imc-snacc@xxxxxxx
Cc:
Subject: C++ output
I require the class definitions produced by eSNACC to be preceded by the keyword public. Is there a simple solution without having to hack the compiler?
John