摘要
介绍了一种新的编译器的制作方法。采用BOOST库的正则表达式库和JAVA脚本控件做编译器。通过正则表达式可以方便地进行G代码语法分析,并支持宏程序。证明了BOOST库加JAVA脚本控件的方式可以方便有效地做出带有分支、循环语句的编译器,具有较高的效率。
A newway of making compiler is introduced.The compiler was made by BOOSTand JAVA script cotroller. Itis easy to parsr by regular expression, and supportthe marco programmer. Itproved thatusing Boost and JAVA script cotroller can make a compiler in a fast and easy way.
出处
《制造技术与机床》
CSCD
北大核心
2010年第8期163-167,共5页
Manufacturing Technology & Machine Tool