Skip to Content
Find More Like This
Return to Search

OBTAINING CORRECT COMPILE RESULTS BY ABSORBING MISMATCHES BETWEEN DATA TYPES REPRESENTATIONS

United States Patent Application

20160350086
A1
View the Complete Application at the US Patent & Trademark Office
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.
Horie, Michihiro (Saitama, JP), Horii, Hiroshi H. (Tokyo, JP), Kawachiya, Kiyokuni (Kanagawa, JP), Takeuchi, Mikio (Kanagawa, JP)
15/ 233,800
August 10, 2016
GOVERNMENT RIGHTS [0001] This invention was made with Government support under Contract No.: DE-SC0008923 (DoE-MIT), 5710003274 (MIT-IBM) awarded by the Department of Energy. The Government has certain rights in this invention.