SR (programming language)

from Wikipedia, the free encyclopedia

SR (Abbreviation for Synchronizing Resources ) is a programming language created for parallel programming .

Hello World in SR

# simple program
resource hello

body hello()
    write(„Hello world“)
end

A compressed version is also possible. Leave out “body hello ()” and only write “resource hello ()” but this time with brackets.

# simple program
resource hello() 
    write(„Hello world“)
end

The name of the resource is not linked to the file name. The above program "hello" can be saved in a file called world.sr.

translation

The SR program code is sr programmname.sr -o name translated into an executable program using . The translation takes place in two steps: In the first step the SR source text is parsed and translated into C source text. This is then compiled with a normal C compiler (e.g. GCC).

See also

bibliography

Web links