| LISP,the List Processor,was created in 1960.In addition,based on the particularity of the code in the LISP language,people usually naming it as a symbolic expression(S-Expression).Because of the simple and elegant design of the LISP language code,the designed and implementation of LISP parser could be a challenge that every programmer should have a try.There is no complicated formal grammar in the LISP Language and each part of the parser is open to the computer programmer,the separation of code and data structures,the separation of the reading period,the compile-time,and the run-time,so that the languageās ability to expand is unparalleled,reaching any of theoretically degree.Therefore,the development of a LISP parser for learning and understanding of the LISP language and learning and understanding of the computer program and design structure is a great benefit.This article will develop a LISP parser that can run on chrome based on the JavaScript language.We will use the software which name is SublimeText to develop the LISP parser.The parser can read the LISP code which was enter by users in the web page.But the LISP cod must be type in the code input box.After read the LISP code,the LISP parser would enter the code to resolve and operation,and finally output the results above the page which user could check the result in the console box on the web page.With the use of JavaScript to develop the LISP parser,we could meet the need to change the development environment changes,while the LISP parser to achieve the most basic analysis and computing functions.Chapter 1 introduces the development of the parser and the background,the second chapter describes the development of the parser selection technology,the third chapter describes the specific needs of the parser,the fourth chapter describes the specific design of the parser and specific To achieve,the fifth chapter of the parser to test and explain the shortcomings,and finally to summarize this article. |