Popis: |
Based on Microsoft GRETA regular expression, the engraving machine NC code interpreter is designed. It is constructed from lexical anlysis module, syntax and semantic analysis module and decoding NC code. In the anlysis modules, regular expression is used in matching NC code, as an analysis tool. Besides, the interpreter is compiled in VC++ 6.0 that is a Microsoft compiler about C++, in order to realize designed function more efficiently.The interpreter can realize the function of interpretation and information extraction. It has good reliability and high expansibility. |