Java and mode Learning Series-interpreter Mode

Source: Internet
Author: User

 

I, Interpreter(Interpreter)Schema Structure

The interpreter mode can define a representation of its syntax and provide an interpreter at the same time. The client can use this interpreter to explain sentences in this language.

The structure is as follows:

The interpreter does not have to have a browser (Parser), But using a browser is still the most common way to create an interpreter. A browser can read text commands from a file or command line and create an interpreter.

II, Relationship between interpreter mode and other modes

Merging Mode

The abstract syntax tree of the interpreted expression is based on the synthesis mode. An ending expression is a leaf node, and a non-ending expression is a composite node.

 

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.