Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calc Compiler Lab

Project Structure

.
├── build
│   └── simplecalc
├── src
│   ├── main.c
│   ├── lexer.l
│   ├── parser.y
│   ├── parse.c
│   ├── parse.h
│   ├── var.c
│   ├── var.h
│   ├── interpret.c
│   ├── interpret.h
│   └── serialize_ast.c
├── tests
│   └── ...
├── scripts
│   └── ...
└── makefile

dependencies

The library libbison-dev is required for linking liby.a.

sudo apt update
sudo apt install flex bison libbison-dev

Usage

compile to build/simplecalc:

make

run program:

make run

run tests:

make test

add test:

make add-test test=<test>

clean compiled and temp files:

make clean

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages