Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

compiler-construction

Part -1 :

Alliance Phase -1 : Lexical Analyzer & Parser ; Scanner

This is a simple lexical analyzer for the C language. The repository contains an example program in C for testing.

This basically identifies tokens , keep track of the line , Eliminates Comments and While spaces.

Run Command : python Alliance.py

Part-2 :

Alliance Phase -2 : Parser , Intermediate Code Generator

First run the lexer(cpp file) Then run the parser(python file) Then run the icg( python file) By default TC0 (testcase-0) is there in the code to give other testcases in line number-135 of "lexer" change the file name.

TC0,T1,TC2,TC3 --> Testcases ptable --> parsing table LL(1) Tokens --> gives input to the parser(taken from lexer)

TEAM :

  1. Manideep : Compiler Developer
  2. Varshith : Compiler Developer
  3. Aryan : Project Manager
  4. ND Bharat : Assistance and Code Tester

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors