Go to file
Rui Ueyama 44bba965cb Add _Bool type
_Bool isn't just a 1-bit integer because when you convert a value
to bool, the result is 1 if the original value is non-zero. This
is contrary to the other small integral types, e.g. char, as you
can see below:

  char x  = 256; // x is 0
  _Bool y = 256; // y is 1
2020-12-07 12:00:05 +09:00
test Add _Bool type 2020-12-07 12:00:05 +09:00
.gitignore Rewrite tests in shell script in C 2020-10-15 14:22:15 +09:00
LICENSE Add LICENSE and README.md 2020-10-07 20:13:25 +09:00
Makefile Rewrite tests in shell script in C 2020-10-15 14:22:15 +09:00
README.md Add LICENSE and README.md 2020-10-07 20:13:25 +09:00
chibicc.h Add _Bool type 2020-12-07 12:00:05 +09:00
codegen.c Add _Bool type 2020-12-07 12:00:05 +09:00
main.c Emit .file and .loc assembler directives 2020-10-15 14:22:16 +09:00
parse.c Add _Bool type 2020-12-07 12:00:05 +09:00
strings.c Refactoring: Add a utility function 2020-10-08 14:31:22 +09:00
tokenize.c Add _Bool type 2020-12-07 12:00:05 +09:00
type.c Add _Bool type 2020-12-07 12:00:05 +09:00

README.md

This is the reference implementation of https://www.sigbus.info/compilerbook.