Global to push GA events into
skip to main content

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

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:
OSTI Identifier:
1410277
Assignee:
International Business Machines Corporation (Armonk, NY) CHO
Patent Number(s):
9,823,910
Application Number:
15/233,800
Contract Number:
SC0008923
Resource Relation:
Patent File Date: 2016 Aug 10
Research Org:
International Business Machines Corporation, Armonk, NY (United States)
Sponsoring Org:
USDOE
Country of Publication:
United States
Language:
English
Subject:
97 MATHEMATICS AND COMPUTING

Other works cited in this record:

Adaptive queuing methodology for system task management
patent, January 2014

Source-to-source transformation for language dialects
patent-application, September 2007

Fault Tolerant Compilation With Automatic Optimization Adjustment
patent-application, December 2010

NUMA Aware System Task Management
patent-application, April 2012

Code Converting Method, Program, And System
patent-application, July 2013

Configuration-Preserving Preprocessor and Configuration-Preserving Parser
patent-application, December 2013

Automated Business Rule Harvesting With Abstract Syntax Tree Transformation
patent-application, September 2014

Computing Device Storing Look-Up Tables For Computation Of A Function
patent-application, March 2015

Similar records in DOepatents and OSTI.GOV collections: