Skip to content

bharath113/CD_Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CD_Lab

B.Bharath Kumar 15CO113

Aditya Bisht 15CO104

This project is for education purpose only. It is part of the lab course.

Phase 1 - Scanner

  1. Implement char, int and float data types.
  2. Implement nested loop constructs.
  3. Implement if...else conditional construct.
  4. Implement structures.
  5. Implement comments and removed them.
  6. Generated symbol table.
  7. Implemented checks for lexical errors, with error messages.

Commands to run the lexical analyser in terminal

cd Scanner

lex p3.l

gcc lex.yy.c

./a.out

About

Compiler Design Lab

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •