Skip to content

ranizouaoui/Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler

Compiler construction using Flex and Bison

Setup Instructions

Clone this repository. You will need flex, bison, and gcc installed on your machine.

To build:

$ make
compiler:
	flex -o lexer.c lexer.l 
	bison -d -o parser.c parser.y -d
	gcc parser.c -o compiler

To run:

$ ./compiler
5 
18
45
Results :
        -- Success in lexical analysis ! --
        -- Parse success! --

To update:

//  Change code
$ rm compiler
$ make

About

Compiler construction using Flex and Bison

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published