This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dataclasses | |
import logging | |
import socket | |
import threading | |
import urllib.request | |
from typing import List | |
import inflection as inflection | |
from datetime import datetime | |
import coloredlogs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from curses.ascii import isalnum | |
class CppNameMangler: | |
KNOWN_TYPES = { | |
# Basic types | |
'signed char': 'A', | |
'char': 'D', | |
'unsigned char': 'E', | |
'short': 'F', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <cinttypes> | |
#include <cmath> | |
#define SECTOR_SIZE (512) | |
#define DATA_SIZE (508) | |
char disk[SECTOR_SIZE * 50]; | |
enum class INodeType : uint32_t { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
str : String <- "This is a test\n"; | |
test : Test <- new Test; | |
main() : Object { | |
test.method(); | |
print(str); | |
abort(); | |
}; |