S-Script HOMEPAGE
Documentation

  • Compilation
  • To compile SScript, you need a correctly installed gcc c++ compiler. You also need bison and flex installed.
    It has only be tested on i386.
    SScript comes with a single makefile... so in most cases, you just need to :
    # tar xzvf sscript-20030905.tar.gz
    # cd sscripts
    # make
    That will produce a library and an executable program. Install them in /usr/, with (as root) :
    #make install
  • Execution
  • To run the test programs :
    # cd tests
    # ./sscript <what you want>.sc
    You will then be asked to enter a SScript expression. For the test programs, you can enter:
    test.new.run
    This means :
    1. Instanciate a new test object ( test.new ),
    2. Call the run function on the new test object.
    Instead you also try any valid sscript expression like :
    • 3*2+1
    • "bonjour".print
    • ...

  • SScript syntax
  • SScript is available with two syntaxes ( C-like and Scheme like). Both need documentation...
    Syntax presentation will soon come. (but see the source code for examples)

  • Builtin classes reference
  • Description of built-in classes ( like int, object, strings,... ) is available in the doc directory. It is not yet up-to-date ( it misses int and exception ).

  • API
  • Since the API is not finished, there is no documentation on it yet. (see the source code for examples)