Let's find the error.-Write a Regular Expression Engine by yourself.

Source: Internet
Author: User
Tags expression engine

Usually writeCodeCertainly, mistakes are inevitable. How can we reduce the chance of making mistakes? We can only exercise more and pay more attention to it. The difficulty of software development is the complexity of the processing nature, that is, the complexity of the business logic itself, rather than solving some technical difficulties. As developers, on the one hand, we need to read more books, increase the knowledge width, learn new technologies, and maintain technical sensitivity. On the other hand, we need to exercise basic skills, such as those written in code Daquan, using defensive programming, controls multi-layer nesting, effectively uses recursion, and uses pseudocode to design sub-scripts.ProgramTo train the code review skills.

This series uses a simple Regular Expression Engine to train the ability to write code and review code, and to work with you to identify Legacy problems and bugs, learn together, and make progress together, because the length is long, only one index is sent on the home page. You can click the link below to read the index.

Let's find the error.-Write a Regular Expression Engine by yourself (1)-Overview

Let's make a mistake-write your own Regular Expression Engine (2)-build an abstract pattern tree

Let's make a mistake-write your own Regular Expression Engine (3)-Build a regular expression parsing tree and Word Segmentation

Let's make a mistake-write a Regular Expression Engine by yourself (4)-resolution method factory and unit test

Let's make a mistake-write your own Regular Expression Engine (5)-Checklist and summary

Source code download

Regexparse.zip

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.