计算机科学 > 程序设计语言
[提交于 2012年10月12日]
标题:Pattern matching in compilers
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this thesis we develop tools for effective and flexible pattern matching. We introduce a new pattern matching system called amethyst. Amethyst is not only a generator of parsers of programming languages, but can also serve as an alternative to tools for matching regular expressions. Our framework also produces dynamic parsers. Its intended use is in the context of IDE (accurate syntax highlighting and error detection on the fly). Amethyst offers pattern matching of general data structures. This makes it a useful tool for implementing compiler optimizations such as constant folding, instruction scheduling, and dataflow analysis in general. The parsers produced are essentially top-down parsers. Linear time complexity is obtained by introducing the novel notion of structured grammars and regularized regular expressions. Amethyst uses techniques known from compiler optimizations to produce effective parsers.
提交历史
来自:Ondřej Bílka[v1] 2012年10月12日 星期五 18:23:56 UTC