![]() |
ИСТИНА |
Войти в систему Регистрация |
Интеллектуальная Система Тематического Исследования НАукометрических данных |
||
There are various problem domains (including symbolic computations, computer algebra and others) in which it is convenient to use typeless programming languages such as Lisp, Refal, Prolog etc. It is learned from practice that the importance of the typelessness of these languages is sometimes no less than the importance of their primary programming paradigms. The well-known S-expression model of heterogenous (mixed type) dynamic data structures is considered as a separate programming paradigm which is to be imported into an object-oriented environment, namely the environment of the C++ language. A library of C++ classes and templates which allows to handle S-expressions within a C++ program is described. The library lets the programmer to use natural Lisp-like syntax creating S-expressions. Using S-expressions as containers for objects of user-invented data types is also possible.