Skip to content

psombe/Expression-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Expression-Parser

Implement a scaled down version of a prefix expression tree parser.

Problem Definition

We need to implement a simple expression parser similar to the Lisp interpreter.
The parser needs to interpret and evaluate the following commands -

  1. Expressions for ADD like (add 4 5)
  2. Expressions for MUL like (mul 3 4)
  3. Any combination of the above two (mul 5 (add (mul 2 3) 7))
  4. A LET operation in the beginning to initalize variables (let ((X 4)) (add X 10))

A simple C++ implementation of the same is given here.

About

Simple Expression Parsing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages