practical type checking of functions defined on context-free languages


Autoria(s): Chen Haiming; Yun-Mei Dong
Data(s)

2004

Resumo

A type checking method for the functional language LFC is presented. A distinct feature of LFC is that it uses Context-Free (CF) languages as data types to represent compound data structures. This makes LFC a dynamically typed language. To improve efficiency, a practical type checking method is presented, which consists of both static and dynamic type checking. Although the inclusion relation of CF.languages is not decidable,a special subset of the relation is decidable, i.e., the sentential form relation, which can be statically checked.Moreover, most of the expressions in actual LFC programs appear to satisfy this relation according to the statistic data of experiments. So, despite that the static type checking is not complete, it undertakes most of the type checking task. Consequently the run-time efficiency is effectively improved. Another feature of the type checking is that it converts the expressions with implicit structures to structured representation. Structure reconstruction technique is presented.

Identificador

http://ir.iscas.ac.cn/handle/311060/2851

http://www.irgrid.ac.cn/handle/1471x/66628

Idioma(s)

英语

Fonte

Chen Haiming; Yun-Mei Dong.practical type checking of functions defined on context-free languages,Journal of Computer Science and Technology,2004,19(6):840-847

Palavras-Chave #type checking #context-free language #algorithm
Tipo

期刊论文