CeeSpot 0.1

CeeSpot is a command interpreter that compiles and runs script source.
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, 21:32 GMT
price:
FREE!
developed by:
dbrower
license type:
BSD License 
category:
ROOT \ Programming \ Interpreters

FREE!

In a hurry? Add it to your Download Basket!

user rating 15

UNRATED
2.5/5
 

0/5

Add your review!

SUBMIT