Skip to content

maksw2/tinycc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c without semicolons

have you ever wondered how cursed c would look without semicolons?

how 2 compile

  • cd win32
  • build-tcc.bat

idk about linux figure it out yourself go to the original repo

how 2 use

  • vim test.c
  • tcc test.c
  • test.exe

where it breaks

source code:

a = b
(c) = d

compiler sees:

a = b(c) = d;

source code:

x = y
-z

compiler sees:

x = y - z;

source code:

val = ptr1
*ptr2 = 10

compiler sees:

val = ptr1 * ptr2 = 10;

q&a

Q: Why does this exist? A: I suffer from an incurable disease called too much free time.

Q: How does it work? A: -skip(';'); +if (tok == ';') skip(';'); and some struct tomfoolery.

Q: Can i use this in production? A: Why would you?

About

c without semicolons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.4%
  • Assembly 2.4%
  • Makefile 0.9%
  • C++ 0.5%
  • Shell 0.3%
  • Perl 0.3%
  • Batchfile 0.2%