Simple algebraic data types for C

1Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.

Abstract

Adt is a simple tool in the spirit of Lex and Yacc that makes monomorphic algebraic data types, polymorphic built-in types like the list and an efficient form of pattern matching available in C programs. C programs built with ADTs typically use NULL pointers only to indicate don't care values, and not as sentinels. This reduces the scope for errors involving NULL pointers. The Adt tool generates runtime checks, which catch many of the remaining NULL pointer dereferences. The runtime checks may consume a significant amount of CPU time; hence they can be switched off once the program is suitably debugged. Copyright © 2011 John Wiley & Sons, Ltd.

Cite

CITATION STYLE

APA

Hartel, P. H., & Muller, H. L. (2012). Simple algebraic data types for C. Software - Practice and Experience, 42(2), 191–210. https://doi.org/10.1002/spe.1058

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free