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:
1347569
Patent Number(s):
9,600,249
Application Number:
14/748,536
Assignee:
International Business Machines Corporation CHO
DOE Contract Number:
SC0008923; 5710003274
Resource Type:
Patent
Resource Relation:
Patent File Date: 2015 Jun 24
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/1347569.
@article{osti_1347569,
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 Mar 21 00:00:00 EDT 2017},
month = {Tue Mar 21 00:00:00 EDT 2017}
}

Patent:

Save / Share:
  • 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 implementingmore » 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.« less
  • 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 implementingmore » 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.« less
  • An arrangement is described for facilitating correct coupling between a distributor and a driving shaft using alignment marks located either on the distributor or on a cylinder head, the alignment marks consisting of: a first alignment mark provided on a coupling claw arranged at the end of a distributor shaft for coupling with a coupling groove at the end of a driving camshaft; a second alignment mark provided on a housing boss of the distributor; a third alignment mark provided on a housing body of the distributor; and a fourth alignment mark provided on the end of the cylinder headmore » accommodating the driving camshaft; the second and third alignment marks arranged in a manner the the third and fourth alignment marks align when the first alignment mark on the coupling claw is aligned with the second alignment mark on the housing boss of the distributor and the coupling claw of the distributor is correctly coupled with the coupling groove of the driving camshaft.« less
  • Motion measurement errors that extend beyond the range resolution of a synthetic aperture radar (SAR) can be corrected by effectively decreasing the range resolution of the SAR in order to permit measurement of the error. Range profiles can be compared across the slow-time dimension of the input data in order to estimate the error. Once the error has been determined, appropriate frequency and phase correction can be applied to the uncompressed input data, after which range and azimuth compression can be performed to produce a desired SAR image.
  • A photodetector is disclosed that is responsive to a wavelength or wavelengths of interest which have heretofore been unrealized. The photodetector includes a resonant cavity structure bounded by first and second reflectors, the resonant cavity structure being resonant at the wavelength or wavelengths of interest for containing a plurality of standing waves therein. The photodetector further includes a radiation absorbing region disposed within the resonant cavity structure, the radiation absorbing region including a plurality of radiation absorbing layers spaced apart from one another by a distance substantially equal to a distance between antinodes of adjacent ones of the standing waves.more » Each of radiation absorbing layers is spatially positioned at a location of one of the antinodes of one of the standing waves such that radiation absorption is enhanced. The radiation absorbing layers may be either bulk layers or quantum wells includes a plurality of layers, each of which is comprised of a strained layer of InGaAs. Individual ones of the InGaAs layers are spaced apart from one another by a GaAs barrier layer. 11 figs.« less