pith. sign in

arxiv: 1801.01579 · v1 · pith:NQBFX36Gnew · submitted 2018-01-04 · 💻 cs.PL

Hygienic Source-Code Generation Using Functors

classification 💻 cs.PL
keywords codeappropriatefunctorsgeneratortoolstypeactionactions
0
0 comments X
read the original abstract

Existing source-code-generating tools such as Lex and Yacc suffer from practical inconveniences because they use disembodied code to implement actions. To prevent this problem, such tools could generate closed functors that are then instantiated by the programmer with appropriate action code. This results in all code being type checked in its appropriate context, and it assists the type checker in localizing errors correctly. We have implemented a lexer generator and parser generator based on this technique for Standard ML, OCaml, and Haskell.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.