Abstract

A design model of NC code complier based on ANother Tool for Language Recognition(ANTLR)was presented,which adopted the Extended Backus Naur Form(EBNF)to define the NC program syntax rule.The model was implemented with Java language,which can make it independent of operating system.The design and implementation of compiler were described from different aspects:lexical analysis,syntax and semantic analysis,information draws and so on.The practical results show that the model can construct the compiler prototype efficiently,compile the NC code faster and more correctly,and can be expanded easily.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.