SR (programming language)
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
- Gregory R. Andrews , Ronald A. Olsson : The SR Programming Language: Concurrency in Practice , ISBN 0-8053-0088-0
- Stephen J. Hartley : Operating Systems Programming: The SR Programming Language , Oxford University Press, ISBN 0-19-509579-0