| 摘要: |
| PhilipWadler在探讨用Monad构造纯函数式程序时,介绍了一个简单的词法分析程序的构造过程.本文进一步研究了这种方法,并用这种方法构造出一个能进行复杂的layout分析、词法分析与语法分析的纯函数式分析程序. |
| 关键词: 函数式程序设计 纯函数式语言 Monad 分析技术 |
| DOI: |
| 分类号: |
| 基金项目: |
|
| PURE FUNCTIONAL PROGRAMMING BASED ON MONADS |
|
Yuan Huaqiang,Sun Yongqiang
|
| Abstract: |
| Philip Wadler introduced the constructing course of a simple lexical parser when he studied how to structure pure functional programs by a monadic approach. This paper studies the approach further. A pure functional parser which can process complicated layout analyses, lexical analyses and syntax analyses is given according to the monadic approach. |
| Key words: Functional programming pure functional language Monad parsing technique. |