patflick / dcpu-cc Goto Github PK
View Code? Open in Web Editor NEWAn ANSI-C (C89) compiler built from scatch for the DCPU16 architecture.
An ANSI-C (C89) compiler built from scatch for the DCPU16 architecture.
May be a problem in the PP. Not sure how all of this works;
For the stdint.h file;
typedef uint8_t unsigned char;
typedef uint16_t unsigned short;
typedef uint32_t unsigned long;
typedef int8_t signed char;
typedef int16_t signed short;
typedef int32_t signed long;
.\DoSH\src\test.c:1:25: error: syntax error, unexpected UNSIGNED, expecting COMMA or SEMICOLON
#typedef uint8_t unsigned
^
to use namespaces, and proper dcpu-cc exceptions, etc
as of request by @SirCmpwn :
find closing } only when not in string literal, character literal or inside a asm comment
Function pointers do not appear to work.
Demo code;
#include "stdlib.h"
#include "ext/screen.h"
#include <stdio.h>
void go(){
eputs("GO\n", 0, 0);
}
void say(){
eputs("SAY\n", 0, 0);
}
int main(){
void (*p[2]) () = {go, say};
(*p[0]) ();
return 0;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.