C interpreter source code

C interpreter source code

Post by Marco Singe » Fri, 13 Dec 2002 12:31:35



Hello,

I want to embed a C (maybe a "slim" version) interpreter into my
software.  It should by easily extensible to add some software (MS
VC++ MFC) specific routines.

I search the web for source codes, but all codes are found are very
complex and I don't know how to embed them correctly. I hoped to find
a single class which contains all...  Can anyone help me?
[C is a complex language.  I doubt if any simple interpreter you fould
would be useful. -John]

 
 
 

C interpreter source code

Post by juergen wurt » Sat, 14 Dec 2002 14:10:21


Hi Marco,
a C interpreter in "a single class"?
This is a complex piece of code and can definitly not been
handled by a single class.
Only if you use a activex script engine, you need to implement
a script host. This can be done with a single class.
There is a scriptengine called debugscript (as a sample how to
implement a script engine with a debug interface). I remember
it as running a C-style language.
Regards,
Juergen


Quote:> I want to embed a C (maybe a "slim" version) interpreter into my
> software. ...
> I search the web for source codes, but all codes are found are very
> complex and I don't know how to embed them correctly. I hoped to find
> a single class which contains all...  Can anyone help me?


 
 
 

C interpreter source code

Post by josejua.. » Sat, 21 Dec 2002 02:39:32


XC*was the name of an old editor for X Windows which had a
SMall ANSI C interpreter (SMAC) embedded. I suppose it was
not a complex interpreter. XC*is now at

ftp://ftp.inria.fr/X/contrib-R5/clients/xcoral-3.2.tar.gz

See also

http://www.veryComputer.com/

for a User's Manual with examples. There's also EiC,

http://www.veryComputer.com/

but I'm afraid it is not very simple.

Good luck.

Jose Juan Mendoza Rodriguez

 
 
 

C interpreter source code

Post by one2001.. » Wed, 01 Jan 2003 14:09:24



> I want to embed a C (maybe a "slim" version) interpreter into my
> software.  It should by easily extensible to add some software (MS
> VC++ MFC) specific routines.

> I search the web for source codes, but all codes are found are very
> complex and I don't know how to embed them correctly. I hoped to find
> a single class which contains all...  Can anyone help me?

You can take a look at Ch - a C interpreter supporting C++ class.
It is also embeddable and extendable with Ch SDK. You may not
even need to look at the source code for your embedding task.

More can be found at
http://www.softintegration.com

 
 
 

C interpreter source code

Post by faus » Thu, 02 Jan 2003 13:45:29



>> I want to embed a C (maybe a "slim" version) interpreter into my
>> software.  It should by easily extensible to add some software (MS
>> VC++ MFC) specific routines.

If C is not essential, then have a look at Guile , (GNU's Ubiquitous
Intelligent Language for Extension)

"Guile is a library designed to help programmers create flexible
applications. Using guile in an application allows programmers to
write plug-ins, or modules (there are many names, but the concept is
essentially the same) and users to use them to have an application fit
their needs.

There is a long list of proven applications that employ extension
languages. Successful and long-lived examples in the free software
world are GNU Emacs and The GIMP.

Very popular examples of extending server applications are the apache
projects perl and php modules.

Extension languages allow users, programmers, and third-party
developers to add features to a program without having to re-write the
program as a whole, and it allows people extending a program to co-
operate with each other, without having to expend any extra effort.

Guile is a programming language.  Guile is an interpreter packaged as
a library which can be incorperated into your programs. Your users
have full access to the interpreter, so guile itself can be extended,
based on the needs of the user. The result is a scripting language
tailored to your application."

http://www.gnu.org/software/guile/guile.html
[If you don't need C, there's a bunch of other extension languages that
are widely used such as python, TCL, REXX, and Lua. -John]

 
 
 

1. Source code for a C interpreter

I am looking for C source code for a C interpreter that can handle
doubles, pointers to arrays of doubles, and pointers to pointers.  I am
developing an application which is large and must be constantly modified.
Rather than have to modify the application each time its required and than
have to recompile, I want to merge the interpreter code into the
application so that I can access the customized source code, as needed,
without having to recompile. I am intending to modify the interpreter code
to allow the customized application to access the compiled codes variables
via tables of global pointers. If anyone has had experience in merging an
interpreter with a compiled application or knows of C source code for a C
interpreter that can handle doubles, pointers, etc., your help would be
appreciated.

Many thanks in advance,

Jay Bookbinder
--

Center for Astrophysics         ++ Phone (617) 495-7058
60 Garden St.                   ++ FAX (617) 495-7356
[I've never seen a free C interpreter at all.  Saber C (which now has some
other name but is produced by Centerline Software which is about a mile from
the CFA which is in turn three blocks from Compilers Central) is a high
quality C interpreter intended for debugging, but it's far from free.
Another possibility is to use the dynamic linking available on many Unix
workstations to load and unload compiled C code as needed.  -John]
--

{ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.

2. test

3. Source Code! Source Code!

4. Need Help - how to install fonts under Win 95

5. Data Recovery SOURCE CODE ( SOURCE CODES of Professional Data Recovery Software )

6. Num Lock mess

7. Sources Wanted : Audio source coding (perceptive)

8. Plextor 4/12 report...

9. Source Code: Visual Source Safe

10. Looking for source code for a programming source editor on Windows 95/NT

11. Does anyone know the HTML code so people cannot view your source code???

12. problem using CACM87 aritmetic coding source code

13. Looking for Trellis Coded Quantization source code, C or C++