Generic Parser
Journal Title: International Journal for Research in Applied Science and Engineering Technology (IJRASET) - Year 2015, Vol 3, Issue 6
Abstract
This paper shows how to implement generic parsers as a family of streams. This allows for very readable, maintainable and flexible parsers. The method is illustrated with a parser for simple arithmetic expressions, but can easily be extended to a parser for a full-fledged programming language. Moreover, the same technique can be applied to the entire process from lexing to execution, since actions can be associated with each sub-parser. The parsing of input is a very important problem appearing in many different parts of software development - parsing user input in the form of command-line options, the parsing of arithmetic expressions in a calculator, parsing values in a user-defined configuration file or compiling some programming language. This makes it important to have different approaches. What we will present here in this project, is a method of parsing inspired by what is done in functional programming (FP). The paper is not about functional programming in C++. Moreover, the presence of too many parentheses makes the code harder to read and is hence also more error prone, rather it is about how to implement a particularly elegant idea from FP in an object oriented context.
Authors and Affiliations
Ms. Shrunkhala Satish Wankhede, Mr. Shubham Itankar, Mr. Sumit Borse
Rudin-Osher-Fatemi (ROF) Model for Blurring Removal in Digital Images
The use of image is everywhere, from selfie to medical imaging. The quality of an image not only depends on camera type but also on the way it is captured. In real time applications quality of images, is not of that muc...
Comparison of Handoff Using Mobile WiMAX
The next-generation Wireless Metropolitan Area Networks, using the Worldwide Interoperability for Microwave Access (WiMAX) as the core technology based on the IEEE 802.16 family of standards, is evolving as a Fourth-Gen...
Implementation of Binary Mask Algorithm for Noise Reduction in Traffic Environment
In this paper, we present a real-time implementation of the binary masking algorithm, which has been shown to significantly reduce the noise and improves speech-in-noise intelligibility. Binary masking algorithm is an e...
Pipe Cutting-A Different Approach
one problem which the present invention solves is the cutting of pipes located in trenches or other points similarly difficult of access. For example, in repairing or adding connections to installed gas mains it is freq...
Scheduler for Minimum Energy Consumption and Better Job Management in Data Center
In reality, basically Service providers makes a high quality use of IaaS and PaaS to developing their services without consideration of physical components, while users also can access on-demand and pay-peruse services...