Skip to content

A00x40/C-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-Compiler Project

A project to design a programming language using lex and yacc

Required Libraries installation

  • sudo apt-get install flex
  • sudo apt-get install bison

Introduction

First, we need to specify all pattern matching rules for lex (bas.l) and grammar rules for yacc (bas.y)

Commands to create our compiler, bas.exe:

  • yacc -d bas.y
  • lex bas.l
  • cc number.c lex.yy.c y.tab.c -ly -ll -lm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published