Inference-based overloading resolution for ADA
We present an incremental type inference and overloading resolution algorithm for ADA. The algorithm is used within a language-specific ADA editor; it is based on inference rules and order-sorted unification. The method is founded on the notion of context relations, a calculus for the incremental analysis of incomplete program fragments. This calculus has recently been extended for the analysis of user-defined polymorphic or overloaded objects, and the semantic analysis for ADA described in this paper was the first field test for the new extensions. Although overloading resolution in incomplete fragments in general is NP-complete, we have obtained an editor with reasonable response time behaviour for up to medium-sized programs.
Unable to display preview. Download preview PDF.
- [BS86]Bahlke, R. and Snelting, G.: The PSG system: from formal language definitions to interactive programming environments. ACM TOPLAS 8, 4 (October 1986), pp. 547–576.Google Scholar
- [D84]Despeyroux, T.: Executable specification of static semantics. Proc. Semantics of data types, LNCS 173, pp. 215–233.Google Scholar
- [DoD83]Reference manual for the ADA programming language. ANSI/MIL-STD 1815, January 1983.Google Scholar
- [G89]Grosch, F.J.: Inferenzbasierte semantische Analyse für ADA. Diploma thesis, Technische Hochschule Darmstadt, Fachbereich Informatik, 1989 (in German).Google Scholar
- [K87]Kahn, G.: Natural semantics. Proc. STACS 1987, LNCS 247.Google Scholar
- [RTD83]Reps, T., Teitelbaum, T. and Demers, A.: Incremental context-dependent analysis for language-based editors. ACM TOPLAS 5, 3 (July 1983), pp. 449–477.Google Scholar
- [SH86]Snelting, G. and Henhapl, W.: Unification in many-sorted algebras as a device for incremental semantic analysis. Proc. 13th POPL, ACM 1986, pp. 229–235.Google Scholar
- [S89]Snelting, G.: The calculus of context relations. Report PI/R4-89, Fachbereich Informatik, Technische Hochschule Darmstadt. Submitted for Publication.Google Scholar
- [SB90]Snelting, G. and Bahlke, R.: PSG: a theory-based environment generator. Proc. International conference on software development environments and factories. Pitnam Publishers, pp. 131–140.Google Scholar