Getting Started

Quickly get familiar with Cheddar

Literals

Literals are the most fundamental part of any programming language. Cheddar has four, five including null

Strings

Strings are like their C counterpart. The only difference is literal newlines are allowed and string formatting exists

"This is a string"
"String w/ literal
newline"
'Single quoted string'
"Formatting: 2+2=#{2+2}"
"Escaped formatting: \#{2+2}"

Numbers

Numbers are rather simple. Binary, octal, decimal, and hexadecimal, literals are supported

123
123.456
.456
0b10110
0o775
0xFF
123_456

Binary literals start with 0b, octal 0o, and hexadecimal, 0x. _ can be used as a seperator within numbers, designed to function as a serpeator, they are ignored by the parser and act like comments, ignored by even the parser.

Arrays