Skip to content

adityabandal/Basic-Calculator-LEX-YACC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic-Calculator-LEX-YACC

Basic calculator compiler using Lex and Yacc

Features

  • Generates tokens and parses the input using lex ang yacc files.
  • Executes basic calculator functions with proper precedence.
Supports
  • Basic arithmetic operations
  • Relational and boolean expressions
  • Multiline comments
  • IF ELSE statements
  • WHILE and FOR loops

Files

  1. Interpreter File
  2. Compiler (to 3 address code)
Reference

Lex an Yacc by Tom Niemann

About

Basic calculator compiler using Lex and Yacc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published