Skip to content

Implement a lexical analyzer and a parser for the RPAL language. Output of the parser gives the Abstract Syntax Tree (AST) for the given input program. Implemented an algorithm to convert the Abstract Syntax Tree (AST) in to Standardize Tree (ST) and implement CSE machine.

Notifications You must be signed in to change notification settings

tharoosha/RPAL-Interpreter

Repository files navigation

RPAL-Interpreter

Implement a lexical analyzer and a parser for the RPAL language. Output of the parser gives the Abstract Syntax Tree (AST) for the given input program. Implemented an algorithm to convert the Abstract Syntax Tree (AST) in to Standardize Tree (ST) and implement CSE machine.

before run this compile this using following command

g++ rpal-interpreter.cpp lexicon.cpp psg.cpp asttost.cpp flattenst.cpp cse.cpp -o rpal.exe

then use following command to run the rpal.exe

./rpal.exe

About

Implement a lexical analyzer and a parser for the RPAL language. Output of the parser gives the Abstract Syntax Tree (AST) for the given input program. Implemented an algorithm to convert the Abstract Syntax Tree (AST) in to Standardize Tree (ST) and implement CSE machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages