Skip to content

a3yko/Python-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Interpreter

Team Members

Adrian Atanasov
Lauren Cochran
Kai Hua Lin
Collin Pounds
Tarek Elbendary
Deodat, Kimuene

to run use the command line and type: python interp.py 'file' where file has the python code you want to interpret

•if/elseblocks Lines 183-245
•Variable definitions Lines 37-127
•while and forLoops Lines 324-454
•Arithmetic operators (+, -, *, /, %, ^)Lines 173-189
•Assignment operators (=, +=, -=, *=, /=, ^=, %=) Lines 250-277
•Conditional statements (<, <=, >, >=, ==, !=) Lines 152-180
•Comments (lines that start with a ‘#’) Lines 28-34
•Support Output operation (printfunction) Lines 131-197
•BONUS:Syntax error message(this is where we did the accept/reject string. If the given codeaka. grammar is not a Python language, reject it. In other words, throw a syntax error message).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages