https://github.com/prinuvinod/compiler-design
These are some Programs based on Designing a Compiler.
https://github.com/prinuvinod/compiler-design
compiler cprogramming lex lexical-analyzer yacc
Last synced: about 1 month ago
JSON representation
These are some Programs based on Designing a Compiler.
- Host: GitHub
- URL: https://github.com/prinuvinod/compiler-design
- Owner: PrinuVinod
- Created: 2023-09-29T11:37:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T15:13:19.000Z (over 2 years ago)
- Last Synced: 2025-01-06T14:26:41.106Z (over 1 year ago)
- Topics: compiler, cprogramming, lex, lexical-analyzer, yacc
- Language: C
- Homepage:
- Size: 210 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compiler Design
These are some Compiler Design Code
# How to Run
In Linux Terminal:
## 1. Lex Programs
```
lex filename.l
```
```
gcc lex.yy.c
```
```
./a.out
```
## 2. YACC Program
```
lex filename.l
```
```
yacc -d identifier.y
```
```
gcc lex.yy.c y.tab.c -lfl
```
```
./a.out
```
## 3. C Program
```
gcc filename.c
```
```
./a.out
```