DocumentCode :
789320
Title :
Generator of efficient strongly typed abstract syntax trees in Java
Author :
van den Brand, M. ; Moreau, P.-E. ; Vinju, J.
Author_Institution :
Centrum voor Wiskunde en Informatica, Netherlands & Hogeschool van Amsterdam, Netherlands
Volume :
152
Issue :
2
fYear :
2005
fDate :
4/8/2005 12:00:00 AM
Firstpage :
70
Lastpage :
78
Abstract :
Abstract syntax trees are a very common data structure in language related tools. For example, compilers, interpreters, documentation generators and syntax-directed editors use them extensively to extract, transform, store and produce information that is key to their functionality. The authors present a Java back-end for ApiGen, a tool that generates implementations of abstract syntax trees. The generated code is characterised by strong typing combined with a generic interface and maximal sub-term sharing for memory efficiency and fast equality checking. The goal of this tool is to obtain safe and more efficient programming interfaces for abstract syntax trees. The contribution of this work is the combination of generating a strongly typed data-structure with maximal sub-term sharing in Java. Practical experience shows that this approach is beneficial for extremely large as well as smaller data types.
Keywords :
Java; abstract data types; application program interfaces; program compilers; tree data structures; ApiGen; Java back-end; generic interface; maximal sub-term sharing; programming interfaces; strong typing; strongly typed abstract syntax tree generator; strongly typed data-structure;
fLanguage :
English
Journal_Title :
Software, IEE Proceedings -
Publisher :
iet
ISSN :
1462-5970
Type :
jour
DOI :
10.1049/ip-sen:20041181
Filename :
1425316
Link To Document :
بازگشت