The syntax of APL, an old approach revisited

Author:

Girardot Jean Jacques1,Rollin Florence2

Affiliation:

1. APL group, Computer Science Department, Ecole des Mines, 158 Cours Fauriel, 42023 Saint-Etienne Cédex, France

2. Network group, Computer Science Department, Ecole des Mines, 158 Cours Fauriel, 42023 Saint-Etienne Cédex, France

Abstract

Most efforts have been made in the past APL conferences to propose new approaches to the analysis of APL, and introduce new features in the language. However, most of these proposals take very little in account the amount of work that has been made around syntax analysis in the 'main stream' of computer science. The proposed approach, as described in this paper, can therefore be considered as an old work. We first describe the fundamental syntactic devices of APL. Those devices are then arranged as a standard BNF. We can exhibit some properties of the language described, and consequently select from the literature an appropriate technique to perform the syntax analysis of APL expressions. The proposed method uses a push-down automaton. Although the language is shown to be not LR(k), an adaptation of this technique works well using backtracking. The whole process has been modelled in APL. A first application transforms a grammar expressed as a BNF in a set of tables. A second application uses these tables to perform the syntax analysis of APL statements. These last programs have been rewritten in C, integrated in an APL system, and used to test different dialects of APL, such as ISO-APL or APL2. Results show the influence of the cost of syntax analysis in the processing of APL expressions.

Publisher

Association for Computing Machinery (ACM)

Reference20 articles.

1. J.Phillip Benkard Valence and precedence in APL exhwsions APL0 13 3 April 1983. 10.1145/390005.801222 J.Phillip Benkard Valence and precedence in APL exhwsions APL0 13 3 April 1983. 10.1145/390005.801222

2. D. Bert Construction d'analyseur syntariques deterministes. Cours ENSIMAG. D. Bert Construction d'analyseur syntariques deterministes. Cours ENSIMAG.

3. APL2 syntax

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3