Keywords

C2 has the following builtin types and keywords

  • as
  • extern
  • import
  • local
  • module
  • bool
  • char
  • const
  • elemsof
  • enum
  • f32
  • f64
  • false
  • fn
  • i16
  • i32
  • i64
  • i8
  • isize
  • nil
  • offsetof
  • public
  • reg16
  • reg32
  • reg64
  • reg8
  • sizeof
  • static
  • struct
  • template
  • tlocal
  • to_container
  • true
  • type
  • u16
  • u32
  • u64
  • u8
  • union
  • usize
  • void
  • volatile
  • break
  • case
  • continue
  • default
  • else
  • fallthrough
  • for
  • goto
  • if
  • return
  • switch
  • while

Other

  • asm
  • assert
  • static_assert

Reserved for C compatibility

  • auto
  • do
  • double
  • float
  • int
  • long
  • short
  • signed
  • size_t
  • ssize_t
  • typedef
  • unsigned

Feature selection

  • #if
  • #ifdef
  • #ifndef
  • #elif
  • #else
  • #endif
  • #warning
  • #error