Skip to content
/ TinyC Public

A compiler for a C-like language with reduced feature set.

Notifications You must be signed in to change notification settings

kayush95/TinyC

Repository files navigation

TinyC Compiler

A compiler for a C-like language (a subset of C language) implemented using using flex, yacc and gnu assembler. Supports common C functions such as variable declarations & assignments for int, char and string data types, loops, arithmetic operations, function calls, arrays, and variable scopes.

Compile using TinyC

  • Allow files to execute

    chmod +x compile.sh
    chmod +x test.sh
    
  • Compile

    ./compile.sh filename.c
    
  • Run

    ./filename.out
    

Run test files

To run all test files provided in test folder,

./test.sh

About

A compiler for a C-like language with reduced feature set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published