You've always loved the lower-level power of C, but wanted its syntax to feel more modern and cutting edge. Look no further and useunC
!
unC
is a simple, lightweight macro library that makes C more readable.
Just add #import "unC.h"
to your code.
IF <statement> DO
<insert code here>
END
ELSIF <statement> DO
END
By now, you probably get the drill.
else
statements in unC
look like
IF <statement> DO
ELSIF <statement> DO
ELSE
END
Now, to run a loop n
times, just implement the RUN
macro. Pass it a variable name(declaring the variable will raise compiler errors) and a number of times to run, and walla!
RUN(i, 15)
printf("%d\n",i);
END
WHILE <statement> DO
END
Runs loop until the given <statement>
becomes true
UNTIL <statement> DO
END
Type | Reimplementation |
---|---|
&& | AND |
|| | OR |
| MORE < | LESS == | EQUALS = (Assignment) | EQUAL
Some commonly used variable types are reimplemented in unC as
Type | Reimplementation |
---|---|
int | NUMBER |
float | FLOAT |
double | DOUBLE |
The following macros are defined to make code more readable if wanted
the
it
a
to
make
And, for those who are tired of typing out int main(int argc, const char*argv[])
every time they start a new project, unC has
MAIN
<code>
END