CPP denotational semantics

被引:2
|
作者
Favre, JM [1 ]
机构
[1] Univ Grenoble, Adele Team, Lab LSR, IMAG, Grenoble, France
关键词
D O I
10.1109/SCAM.2003.1238028
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper shows that CPP the preprocessor of the C language, can be seen as a programming language in which directives are statements, parametrized macros are functions, files are procedures, directories are modules, and command lines are programs. The semantics of CPP can therefore be described using traditional techniques. This paper describes the semantics of CPP in a denotational style. By contrast with previous work, the full semantics is taken into account including non trivial aspects such as recursive macros, stringification and concatenation.
引用
收藏
页码:22 / 31
页数:10
相关论文
共 50 条