pattern matching compilation of functions defined in context-free languages
Data(s) |
2001
|
---|---|
Resumo |
LFC is a functional language based on recursive functions defined in context-free languages. In this paper, a new pattern matching algorithm for LFC is presented, which can represent a sequence of patterns as an integer by an encoding method. It is a rather simple method and produces efficient case-expressions for pattern matching definitions of LFC. The algorithm can also be used for other functional languages, but for nested patterns it may become complicated and further studies are needed. |
Identificador | |
Idioma(s) |
英语 |
Fonte |
Chen Haiming; Yunmei Dong.pattern matching compilation of functions defined in context-free languages,Journal of Computer Science and Technology,2001,16(2):159-167 |
Palavras-Chave | #pattern matching #algorithm #recursive function #context-free language #functional language |
Tipo |
期刊论文 |