Tools Search Store Our resourses Boar Games Center Login
Home Services Products Contact Us About Us My SetupGroup
General |Accessories |Arcade Games |Board Games |Card Games |Puzzles |Misc
Click here to hide toolbar Hide toolbar

SG Script

Version 2.1.37,3.4.14, Release Date: October 01, 2003, Made by Mark Okun


This applet is a demo version. Many features of SG Script is not implemented in the applet version to not violate Java security system.

Contents

History of SG Script

When I learned C++ (it was many years ago) I had project: create simple interpreted language.
It was very useful project for me. Therefore when I started learn Java I decided recreate this language using Java.

This language was simuliar to C but many features of C were missing. Therefore I named it C-- or CScript. But later I found out that these names are used. After that I changed name to to SG Srcipt.

Rules

  • Difference between C and SG Script:
    Topic C SG Script
    Preprocessor YesNo
    Structure YesNo
    Pointers YesNo
    Array YesNo
    Comments /*...*/ YesNo
    Loop do ... while YesNo
    Loop for YesNo
    Switch ... case YesNo
    Predefine variablesYesNo
  • C and SG Script have different functions.

Examples

This is example of a program written in SG Script:
print("This is a demo");
// In SG Script user don't need
// predefine variable
x = 0;
y = 2;
while(x < 10){
x = x + 1;
y+=2;
}
print ("x=",x,"y=",y);
print (x2(y));
// In SG Script you can use functions
x2(y)
{
return (y*y);
}

Copyright © 2002 Setup Group All rights reserved.
Home | Back | Contact Us | Tell a friend | Submit Software | Login | Lobby | Search Last update: March 31, 2005
Quote: Space isn't remote at all. It's only an hour's drive away if your car could go straight upwards.
Author: Fred Hoyle