专利名称:C-to-java programming language translator
发明人:James B. McAtamney
申请号:US12784277
申请日:20100520
公开号:US08533690B2
公开日:c和java先学哪个
20130910
专利内容由知识产权出版社提供
专利附图:
摘要:A C-to-Java programming language translator that requires no human
intervention, translates literally to preserve both procedure and function in the resulting code, and is independent of the purpose of the source code. The program reads in text from a C file, tokenizes each line for C keywords and punctuation, translates most
keywords and expressions, and outputs the result to a Java file. The program is modular so that it is capable of running on multiple operating systems and hardware. The invention implements several methods of translation, including whole-line translation, search/replace translation, context-sensitive translation, idiomatic translation, and second-pass translation. The second-pass translation handles those instances when correct translation of a particular line depends on information in another line. The program of the invention translates a struct into a Java inner class, complete with multiple constructors and private variables, and it translates pointers into their reference equivalents.
申请人:James B. McAtamney
地址:Falls Church VA US
国籍:US
代理人:Dennis H. Lambert
更多信息请下载全文后查看

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。