KLI

Prolog언어를 사용한 Compiler구현

Metadata Downloads
Alternative Title
On the Implementation of a Compiler with Prolog language
Abstract
본 논문에서는 Compiler를 구현하는 여러 언어가 있지만 논리프로그래밍 언어인 Prolog로서 Compiler를 구현할 수 있다는 것을 보였다. BNF로 표기되는 간단한 언어를 정의하고 이 언어로 작성된 프로그램을 문장분석, 코드생성, 어셈블리 과정을 거쳐 목적 프로그램으로 번역하였다. Prolog언어로서 문제해결은 구현과정과 명세과정이 밀접한 연관성이 있다는 점으로부터 Compiler를 작성할 때 얻을 수 있는 장점을 논했다.
This paper shows that, like other languages, Prolog, as a logic programing language, can be used for the implementation of a compiler. A simple language, expressed by BNF, is defined and a sample program is written according to this form. This program is parsed and translated to target language by the compiler written with Prolog. From the point that the specification is very closely related to the implementation when a problem is solved with Prolog, resulting various advantages are discussed.
This paper shows that, like other languages, Prolog, as a logic programing language, can be used for the implementation of a compiler. A simple language, expressed by BNF, is defined and a sample program is written according to this form. This program is parsed and translated to target language by the compiler written with Prolog. From the point that the specification is very closely related to the implementation when a problem is solved with Prolog, resulting various advantages are discussed.
Author(s)
朴佑昶
Issued Date
1987
Type
Research Laboratory
URI
https://oak.ulsan.ac.kr/handle/2021.oak/5061
http://ulsan.dcollection.net/jsp/common/DcLoOrgPer.jsp?sItemId=000002025508
Alternative Author(s)
Park, U-Chang
Publisher
연구논문집
Language
kor
Rights
울산대학교 저작물은 저작권에 의해 보호받습니다.
Citation Volume
18
Citation Number
2
Citation Start Page
107
Citation End Page
114
Appears in Collections:
Research Laboratory > University of Ulsan Report
공개 및 라이선스
  • 공개 구분공개
파일 목록

Items in Repository are protected by copyright, with all rights reserved, unless otherwise indicated.