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:
- Issue Date:
- Research Org.:
- International Business Machines Corp., Armonk, NY (United States)
- Sponsoring Org.:
- USDOE
- OSTI Identifier:
- 1347569
- Patent Number(s):
- 9600249
- Application Number:
- 14/748,536
- Assignee:
- International Business Machines Corporation
- Patent Classifications (CPCs):
-
G - PHYSICS G06 - COMPUTING G06F - ELECTRIC DIGITAL DATA PROCESSING
- 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. 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 = {2017},
month = {3}
}
Works referenced in this record:
Adaptive queuing methodology for system task management
patent, January 2014
- Waddington, Daniel G.; Tian, Chen
- US Patent Document 8,640,140
Source-to-source transformation for language dialects
patent-application, September 2007
- Varma, Pradeep
- US Patent Application 11/388353; 20070226708
Fault Tolerant Compilation With Automatic Optimization Adjustment
patent-application, December 2010
- Song, Yonghong; Kalogeropulos, Spiros; Tirumalai, Partha
- US Patent Application 12/488905; 20100325619
NUMA Aware System Task Management
patent-application, April 2012
- Waddington, Daniel; Tian, Chen
- US Patent Application 13/077612; 20120102500
Code Converting Method, Program, And System
patent-application, July 2013
- Takeuchi, Mikio
- US Patent Application 13/718325; 20130174131
Configuration-Preserving Preprocessor and Configuration-Preserving Parser
patent-application, December 2013
- Grimm, Robert; Gazzillo, Paul
- US Patent Application 13/485410; 20130326204
Automated Business Rule Harvesting With Abstract Syntax Tree Transformation
patent-application, September 2014
- Garza, David
- US Patent Application 13/844468; 20140282373
Computing Device Storing Look-Up Tables For Computation Of A Function
patent-application, March 2015
- Gorissen, Paulus Mathias hubertus Mechtildis Antonius; Tolhuizer, Ludovicus Marinus Gerardus Maria
- US Patent Application 14/396971; 20150067441