Fortune Telling Collection - Free divination - How to create a computer language?
How to create a computer language?
? In this step, you should know that most language processing is divided into four stages: morphology, grammar, semantics and code generation. What do you do at each stage? Understand the specific compilation algorithm. How much you know depends on whether you use third-party tools or need to start with people yourself. Personally, Chomsky grammar system, EBNF, regular expression and recursive descent analysis of LL( 1) must be mastered. There are concepts of LL(k) and LR(k). Among them, the analysis of four operational expressions is a good exercise. Sense of grammar.
? There are two difficulties in designing a language for beginners. First, I don't know what kind of grammar/semantics you need; Second, I don't know if the grammar you designed can be realized. Do you need a script similar to natural language, or is it just an expression? After three stages of training, I think you have the ability to write grammar independently. You can write a basic version. Be aware of your language, especially vocabulary and grammar. This step is best to log out as much information as possible, such as word list, and print out the analysis tree.
- Previous article:Senior copywriter suggests breaking up (a collection of 80 sentences)
- Next article:What are the top ten beasts?
- Related articles
- Who will help the B-blood girl born on March 5, 1986 (the 25th day of the first lunar month) to tell her fortune?
- Why is it unlucky to have children?
- What do you mean by dreaming about jade?
- Brief introduction of Sima yi
- What is the tarot card of199112?
- Where was Li Sao written and in what solar terms?
- What are the main measures to strengthen centralization after Qin's reunification and their historical functions?
- Both Song and Yan are very handsome. Do you like Yan or Song?
- Go to the temple and draw the symbol of the 56th god. The poem says: the beach water is ringing, the breeze and the bright moon are busy. The road should ask where the road is and repair the flowers a
- Japan's "Blood-sucking Jimeixi" complete story introduction website