Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.
/ CC1-Simple-Lexer Public archive

Assignment 2 for subject Compiler Construction, CE KMITL

Notifications You must be signed in to change notification settings

mr54ndm4n/CC1-Simple-Lexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Lexer

This assignment was submitted to 'Compiler Construction' subject, CE KMITL

Original flex file by Jutta Degener, 2004 (http://www.quut.com/c/ANSI-C-grammar-l-1995.html)

Contributor

  • Siridej Phanathanate
  • Isara Naranirattisai

Both contributor contributed equally to this work

Install GNU Flex and GCC

  $ sudo apt-get install flex
  $ sudo apt-get install gcc

How to run?

  • flex foobar.flex and you'll get lex.yy.c
  $ flex foobar.flex
  • Compile lex.yy.c using gcc
  $ gcc lex.yy.c -lfl
  • then run 'a.out' with test.c as input
  $ ./a.out < test.c

Reference

About

Assignment 2 for subject Compiler Construction, CE KMITL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published