Reading dragon Book compiling Principles of Grammar Analysis (4) ...

Source: Internet
Author: User

The next step is to study the specific implementation of the syntax analysis ... There are always two kinds: top-down and bottom-up ... Let's take a look at top down.

So what exactly is the actual implementation of this:

Then you can find that the process of the algorithm implementation is in the most left derivation of the way to traverse all possible situations, while traversing the stack used, using the stack to do an explicit traversal instead of recursion ... It is important to note that (the next right hand side of T) if the order of the stack is N2 first into the stack, and you will find that the order in which it is checked is starting from the left side of the tokens array, you must Use the left derivation only) ...

So let's examine the algorithm itself:

Reading dragon Book compiling Principles of Grammar Analysis (4) ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.