Skip to content

A lexical analyzer written in lex to tokenize a given C file and also remove all its comments.

Notifications You must be signed in to change notification settings

utkarshaditya01/Lexical-Analyzer-for-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lexical Analyzer

A lexical analyzer written in Lex to tokenize an input C program file and also remove all its comments.

The comments of the input .c file(palindrome.c) is removed and the output is created as out.c file. The input c file is not modified.

Commands to run

  1. lex tokenizer.l
  2. gcc lex.yy.c
  3. ./a.exe palindrome.c

NOTE : Provide the input file through command line.

Output

About

A lexical analyzer written in lex to tokenize a given C file and also remove all its comments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published