以数控系统NC代码解释器为研究对象,探索了一种面向开放式数控系统NC代码解释器的设计与实现方法。通过引入Regex技术作为词法、语法和语义分析的工具;使用所谓委托调用插补函数的方式,在Visual Studio 2005开发平台上实现了一种面向开...以数控系统NC代码解释器为研究对象,探索了一种面向开放式数控系统NC代码解释器的设计与实现方法。通过引入Regex技术作为词法、语法和语义分析的工具;使用所谓委托调用插补函数的方式,在Visual Studio 2005开发平台上实现了一种面向开放式数控系统NC代码解释器。这种解释器能适用于不同类型的数控系统,具有很强的通用性和兼容性。实例NC代码验证了由所述设计和实现方法实现的开放式数控系统NC代码解释器的可行性。展开更多
With the development of computer technology, embedded control system plays an important role in modern industry. For the embedded system, traditional development methods are time-consuming and system is not easy to ma...With the development of computer technology, embedded control system plays an important role in modern industry. For the embedded system, traditional development methods are time-consuming and system is not easy to maintain. Domain-specific modeling provides a solution for the problems. In this paper, we proposed development architecture for embedded control systems based on MIC. GME is used to construct meta-model and application model, model in-terpreter interprets model and stores model information in xml format document. The final cross-platform codes are automatically generated by different templates and xml format document. This development method can reduce time and cost in the lifecycle of system development.展开更多
文摘以数控系统NC代码解释器为研究对象,探索了一种面向开放式数控系统NC代码解释器的设计与实现方法。通过引入Regex技术作为词法、语法和语义分析的工具;使用所谓委托调用插补函数的方式,在Visual Studio 2005开发平台上实现了一种面向开放式数控系统NC代码解释器。这种解释器能适用于不同类型的数控系统,具有很强的通用性和兼容性。实例NC代码验证了由所述设计和实现方法实现的开放式数控系统NC代码解释器的可行性。
文摘With the development of computer technology, embedded control system plays an important role in modern industry. For the embedded system, traditional development methods are time-consuming and system is not easy to maintain. Domain-specific modeling provides a solution for the problems. In this paper, we proposed development architecture for embedded control systems based on MIC. GME is used to construct meta-model and application model, model in-terpreter interprets model and stores model information in xml format document. The final cross-platform codes are automatically generated by different templates and xml format document. This development method can reduce time and cost in the lifecycle of system development.