Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/1111037.1111047acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article

Polymorphic regular tree types and patterns

Published: 11 January 2006 Publication History

Abstract

We propose a type system based on regular tree grammars, where algebraic datatypes are interpreted in a structural way. Thus, the same constructors can be reused for different types and a flexible subtyping relation can be defined between types, corresponding to the inclusion of their semantics. For instance, one can define a type for lists and a subtype of this type corresponding to lists of even length. Patterns are simply types annotated with binders. This provides a generalization of algebraic patterns with the ability of matching arbitrarily deep in a value. Our main contribution, compared to languages such as XDuce and CDuce, is that we are able to deal with both polymorphism and function types.

References

[1]
M. Brandt and F. Henglein. Coinductive axiomatization of recursive type equality and subtyping. In R. Hindley, editor, Proc. 3d Int'l Conf. on Typed Lambda Calculi and Applications (TLCA), Nancy, France, April 2-4, 1997, volume 1210 of Lecture Notes in Computer Science (LNCS), pages 63--81. Springer-Verlag, April 1997.
[2]
R. Cartwright. Types as intervals. In Proceedings of the 12th ACM SIGACT-SIGPLAN symposium on Principles of programming languages, pages 22--36. ACM Press, 1985.
[3]
CDuce Development Team. CDuce Programming Language User's Manual. Available from http://www.cduce.org/documentation.html.
[4]
A. Frisch. Théorie, conception et réalisation d'un langage adapté à XML. Thèse de doctorat, University of Paris 7, 2004.
[5]
V. Gapeyev, M. Levin, and B. Pierce. Recursive subtyping revealed. Journal of Functional Programming, 12(6):511--548, 2003. Preliminary version in ICFP 2000.
[6]
H. Hosoya, A. Frisch, and G. Castagna. Parametric polymorphism for XML. In POPL '05: Proceedings of the 32nd ACM SIGPLAN-SIGACT sysposium on Principles of programming languages, pages 50--62. ACM Press, 2005.
[7]
H. Hosoya and B. C. Pierce. XDuce: A statically typed XML processing language. ACM Transactions on Internet Technology, 3(2):117--148, May 2003.
[8]
H. Hosoya, J. Vouillon, and B. C. Pierce. Regular expression types for XML. ACM Trans. Program. Lang. Syst., 27(1):46--90, 2005. Short version in ICFP 2000.
[9]
M. Y. Levin. Compiling regular patterns. In ICFP '03: Proceedings of the eighth ACM SIGPLAN international conference on Functional programming, pages 65--77, New York, NY, USA, 2003. ACM Press.
[10]
J. C. Reynolds. Types, abstraction, and parametric polymorphism. In R. E. A. Mason, editor, Information Processing 83, pages 513--523, Amsterdam, 1983. Elsevier Science Publishers B. V. (North-Holland).
[11]
A. K. Wright. Simple imperative polymorphism. Lisp Symb. Comput., 8(4):343--355, 1995.

Cited By

View all
  • (2020)Inclusion algorithms for one-unambiguous regular expressions and their applicationsScience of Computer Programming10.1016/j.scico.2020.102436(102436)Online publication date: Mar-2020
  • (2019)Using Structural and Parametric Polymorphism in the Creation of Digital TwinsAutomatic Documentation and Mathematical Linguistics10.3103/S000510551902005553:2(81-84)Online publication date: 1-Mar-2019
  • (2018)XML TypecheckingEncyclopedia of Database Systems10.1007/978-1-4614-8265-9_788(4817-4822)Online publication date: 7-Dec-2018
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
POPL '06: Conference record of the 33rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages
January 2006
432 pages
ISBN:1595930272
DOI:10.1145/1111037
  • cover image ACM SIGPLAN Notices
    ACM SIGPLAN Notices  Volume 41, Issue 1
    Proceedings of the 2006 POPL Conference
    January 2006
    421 pages
    ISSN:0362-1340
    EISSN:1558-1160
    DOI:10.1145/1111320
    Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 11 January 2006

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. polymorphism
  2. subtyping
  3. tree automata

Qualifiers

  • Article

Conference

POPL06

Acceptance Rates

Overall Acceptance Rate 824 of 4,130 submissions, 20%

Upcoming Conference

POPL '25

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)0
Reflects downloads up to 14 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2020)Inclusion algorithms for one-unambiguous regular expressions and their applicationsScience of Computer Programming10.1016/j.scico.2020.102436(102436)Online publication date: Mar-2020
  • (2019)Using Structural and Parametric Polymorphism in the Creation of Digital TwinsAutomatic Documentation and Mathematical Linguistics10.3103/S000510551902005553:2(81-84)Online publication date: 1-Mar-2019
  • (2018)XML TypecheckingEncyclopedia of Database Systems10.1007/978-1-4614-8265-9_788(4817-4822)Online publication date: 7-Dec-2018
  • (2017)On Subtyping-Relation Completeness, with an Application to Iso-Recursive TypesACM Transactions on Programming Languages and Systems10.1145/299459639:1(1-36)Online publication date: 6-Mar-2017
  • (2016)XML TypecheckingEncyclopedia of Database Systems10.1007/978-1-4899-7993-3_788-2(1-6)Online publication date: 29-Dec-2016
  • (2015)A Logical Approach to Deciding Semantic SubtypingACM Transactions on Programming Languages and Systems10.1145/281280538:1(1-31)Online publication date: 16-Oct-2015
  • (2014)Polymorphic functions with set-theoretic typesACM SIGPLAN Notices10.1145/2578855.253584049:1(5-17)Online publication date: 8-Jan-2014
  • (2014)Polymorphic functions with set-theoretic typesProceedings of the 41st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages10.1145/2535838.2535840(5-17)Online publication date: 11-Jan-2014
  • (2011)Parametric polymorphism and semantic subtypingProceedings of the 16th ACM SIGPLAN international conference on Functional programming10.1145/2034773.2034789(107-116)Online publication date: 19-Sep-2011
  • (2011)Set-theoretic foundation of parametric polymorphism and subtypingProceedings of the 16th ACM SIGPLAN international conference on Functional programming10.1145/2034773.2034788(94-106)Online publication date: 19-Sep-2011
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media