Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,655 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 https://github.com/TinyCC/tinycc

how 2 use

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

where it breaks (Here be Dragons)

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?

inspired by tsoding 🤑

About

c without semicolons

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages