skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Obtaining correct compile results by absorbing mismatches between data types representations

Abstract

Methods and a system are provided. A method includes implementing a function, which a compiler for a first language does not have, using a compiler for a second language. The implementing step includes generating, by the compiler for the first language, a first abstract syntax tree. The implementing step further includes converting, by a converter, the first abstract syntax tree to a second abstract syntax tree of the compiler for the second language using a conversion table from data representation types in the first language to data representation types in the second language. When a compilation error occurs, the implementing step also includes generating a special node for error processing in the second abstract syntax tree and storing an error token in the special node. When unparsing, the implementing step additionally includes outputting the error token, in the form of source code written in the first language.

Inventors:
; ; ;
Publication Date:
Research Org.:
International Business Machines Corporation, Armonk, NY (United States)
Sponsoring Org.:
USDOE
OSTI Identifier:
1410277
Patent Number(s):
9,823,910
Application Number:
15/233,800
Assignee:
International Business Machines Corporation (Armonk, NY) CHO
DOE Contract Number:
SC0008923
Resource Type:
Patent
Resource Relation:
Patent File Date: 2016 Aug 10
Country of Publication:
United States
Language:
English
Subject:
97 MATHEMATICS AND COMPUTING

Citation Formats

Horie, Michihiro, Horii, Hiroshi H., Kawachiya, Kiyokuni, and Takeuchi, Mikio. Obtaining correct compile results by absorbing mismatches between data types representations. United States: N. p., 2017. Web.
Horie, Michihiro, Horii, Hiroshi H., Kawachiya, Kiyokuni, & Takeuchi, Mikio. Obtaining correct compile results by absorbing mismatches between data types representations. United States.
Horie, Michihiro, Horii, Hiroshi H., Kawachiya, Kiyokuni, and Takeuchi, Mikio. Tue . "Obtaining correct compile results by absorbing mismatches between data types representations". United States. doi:. https://www.osti.gov/servlets/purl/1410277.
@article{osti_1410277,
title = {Obtaining correct compile results by absorbing mismatches between data types representations},
author = {Horie, Michihiro and Horii, Hiroshi H. and Kawachiya, Kiyokuni and Takeuchi, Mikio},
abstractNote = {Methods and a system are provided. A method includes implementing a function, which a compiler for a first language does not have, using a compiler for a second language. The implementing step includes generating, by the compiler for the first language, a first abstract syntax tree. The implementing step further includes converting, by a converter, the first abstract syntax tree to a second abstract syntax tree of the compiler for the second language using a conversion table from data representation types in the first language to data representation types in the second language. When a compilation error occurs, the implementing step also includes generating a special node for error processing in the second abstract syntax tree and storing an error token in the special node. When unparsing, the implementing step additionally includes outputting the error token, in the form of source code written in the first language.},
doi = {},
journal = {},
number = ,
volume = ,
place = {United States},
year = {Tue Nov 21 00:00:00 EST 2017},
month = {Tue Nov 21 00:00:00 EST 2017}
}

Patent:

Save / Share: