CeeSpot 0.1

CeeSpot is a command interpreter that compiles and runs script source.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
2.5/5 15
DEVELOPED BY:
dbrower
HOMEPAGE:
ceespot.sourceforge.net
CATEGORY:
ROOT \ Programming \ Interpreters
CeeSpot, or "c." is a program run as a Linux or UNIX command interpreter using the #!/usr/bin/ceespot or #!/bin/c. syntax.

After eating (and interpreting) any # comments at the beginning of the file, it compiles the rest and executes the result.

This lets you use a compiled language as a script file. This is plausible now that machines and compilers are fast enough you don't notice a subsecond compile and link.

Some Exemples

::::::::::::::
hello-c
::::::::::::::

#!/usr/bin/ceespot

#include < stdio.h >

int main(int argc, char **argv)
{
printf("hello, worldn");
return 0;
}

::::::::::::::
hello-cxx
::::::::::::::

#!/usr/bin/ceespot
# CC = g++


#include < iostream >
using namespace std;

int main( int argc, char **argv )
{
cout
#include < X11/StringDefs.h >
#include < X11/Xaw/Label.h >

main(int argc,char **argv)
{
XtAppContext app_context;
Widget toplevel,hello;

toplevel = XtVaAppInitialize(&app_context,"XHello",NULL,0,
&argc,argv,NULL,NULL);
hello = XtVaCreateManagedWidget("Hello World!",labelWidgetClass,
toplevel,(void*)0);

XtRealizeWidget(toplevel);

XtAppMainLoop(app_context);
return 0;
}

Last updated on April 14th, 2005

#command interpreter #CeeSpot #command #interpreter

Add your review!

SUBMIT