[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
Syntactic extension for languages with implicitly delimited and infix syntax
Publisher:
  • University of Utah
  • Computer Science Dept. 3160 Merrill Engineering Bldg. Salt Lake City, UT
  • United States
ISBN:978-1-303-08238-2
Order Number:AAI3561239
Pages:
103
Reflects downloads up to 06 Jan 2025Bibliometrics
Skip Abstract Section
Abstract

I present the design of a parser that adds Scheme-style language extensibility to languages with implicitly delimited and infix syntax. A key element of my design is an enforestation parsing step, which converts a flat stream of tokens into an S-expression-like tree, in addition to the initial "read" phase of parsing and interleaved with the "macro-expand" phase.

My parser uses standard lexical scoping rules to communicate syntactic extensions to the parser. In this way extensions naturally compose locally as well as through module boundaries. I argue that this style of communication is better suited towards a useful extension system than tools not directly integrated with the compiler.

This dissertation explores the limits of this design in a new language called Honu. I use the extensiblity provided by Honu to develop useful language extensions such as LINQ and a parser generator. I also demonstrate the generality of the parsing techniques by applying them to Java and Python.

Contributors
  • The University of Utah
  • The University of Utah
Please enable JavaScript to view thecomments powered by Disqus.

Recommendations