DUP programming language
| DUP | |
|---|---|
| Paradigm | functional, interpreted |
| First appeared | 1990s |
| OS | Solaris, Linux |
| License | Proprietary |
DUP (DataUnit Processing language) is a special-purpose, interpreted and functional programming language. The DUP language looks like a mixture of C and ASN.1.[1] It borrows its structure from C, while the way of using variables comes from ASN.1. This makes it intuitive for a programmer used to C/C++ and ASN.1 to use the language. It was developed at Ericsson, and used in Ericsson Billing Gateway and Ericsson Multi Activation platform.[2]
Language
Functions
A function is declared as follows:
<return type> <function name> ( <argument list> )
{
<function body>
}
The <return type> is one of the ASN.1 types supported by the application in which is used.
It is possible to add CONST to the type which implies that the return value is constant and can not be changed. A function can also have the return type VOID which means that it does not return anything.
The <argument list> is a comma separated list of arguments.
Each argument is declared as follows:
<argument name> <argument type>
The <argument type> is an ASN.1 data type. It is
also possible to use the ANY type if the type is unknown.
All return values and arguments are passed as reference.
An example of DUP code can be seen below:
CONST INTEGER add(a CONST INTEGER)
{
declare result INTEGER;
result ::= 10;
result += a;
return result;
}
Notes
- ^ Valdemar Mejstad and Karl-Johan Tångby. "Improving Multiprocessor Performance of a Large Telecommunication System by Replacing Interpretation with Compilation" (PDF). Department of Software Engineering and Computer Science. Blekinge Institute of Technology.
- ^ "Ericsson Multi Activation 5.0 Training Programs. Catalog of Course Descriptions". Ericsson AB Global Services.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.