Transferred from: Model-engineering implementation and expansion (Design Mode C)
Http://www.cnblogs.com/callwangxiang/
1,Designed by youGlobal stock marketThe online financial system, which has a function of Real-Time query of stock prices. Users generally use Chinese names of stocks, Chinese pinyin of stocks, English names of stocks, abbreviations of stocksCodeYou can use the interpreter mode to query the stock price.. NET Framework 4.0To more efficiently complete the query function.
Constraints:
1)The stock information of various countries is stored on different servers. These servers are distributed across your company's data centers on several continents around the world, and the stock information of each data center is not at the intersection.
2)Assume that there is no distributed cache in the existing environment, and each server node only has local data cached in the process.
3)The communication latency to each data center is generally in1 S-0.01 s, User response needs to be in2 SCompleted
2,Based on the examples of addition and subtraction calculators in the classic interpreter mode section in this chapter and the examples of XSD custom business language interpreters, a custom XML language for special operation in addition and subtraction computing is designed to develop an interpreter for it, it is required to verify simple syntax errors and perform calculations correctly..