摘要
针对OSEK标准的应用设计了一个从OIL代码到C代码的自动生成系统,该系统允许用户输入OIL配置文件信息,读取用户的输入转换为标准的C程序,返回给用户,在具体应用的时候,文法限制严格。该系统结合代码自动生成的过程,提出了一些具体的解决过程,消弱了对文法输入的限制,提高了对文法的适应能力。
This paper aiming at a hot research question-- the application of OSEK standard,designs a system which translate a OIL code to a standard C code. This system allows user input some OIL configuration information,then translates the input information to a standard C programme which would return to the user.There is a strict grammar restriction in the real application.This system based on the code automatic generation puts forward some essential solution to minish the grammar restriction and boosts the grammar adapting ability.