File naming convention change

This commit is contained in:
Krzosa Karol
2022-09-30 16:20:28 +02:00
parent b1d05bc203
commit 233115cf2c
21 changed files with 28 additions and 36 deletions

View File

@@ -13,8 +13,8 @@ The language is currently **very debuggable**. It can produce readable C code wi
// Virtual memory abstraction using Windows API
//
#import "kernel32.kl"
#import "base.kl"
#import "KERNEL32.core"
#import "Base.core"
PAGE_SIZE :: 4096
Memory :: struct

View File

@@ -832,7 +832,7 @@ typedef struct String{
compiler_error(0, "Entry point is not defined! Try main or WinMain");
}
// Generate language.kl
// Generate language.core
for(S32 i = 0; i < pctx->base_language_ordered_decl_len; i++){
Ast_Decl *it = get(&pctx->ordered_decls, i);
genln("");

View File

@@ -247,7 +247,7 @@ compile_file_to_string(String filename){
total_time = os_time();
begin_compilation();
{
Ast_Module *module = add_module(0, pctx->intern("language.kl"_s));
Ast_Module *module = add_module(0, pctx->intern("Language.core"_s));
insert_builtin_types_into_scope(module);
pctx->language_base_module = module;

View File

@@ -285,7 +285,6 @@ int main(int argument_count, char **arguments){
else {
Scratch scratch;
Array<OS_File_Info> examples = os_list_dir(scratch, "examples"_s);
// compile_file("examples/language_basics.kl"_s, COMPILE_AND_RUN);
For(examples){
if(it.is_directory) continue;
compile_file(it.absolute_path, COMPILE_AND_RUN | COMPILE_TESTING);

View File

@@ -1,10 +1,10 @@
#import "base.kl"
#import "arena.kl"
#import "os_windows.kl"
#import "kernel32.kl"
#import "gdi32.kl"
#import "user32.kl"
#import "winmm.kl"
#import "Base.core"
#import "Arena.core"
#import "Windows.core"
#import "KERNEL32.core"
#import "GDI32.core"
#import "USER32.core"
#import "WINMM.core"
Vec2I :: struct;; x: S64; y: S64
Vec2 :: struct;; x: F32; y: F32

View File

@@ -19,11 +19,4 @@ main :: (): int
e := c - d
Assert(e.x == 6 && e.y == 8 && e.z == 10)
test_string := "
Memes
"
return 0

View File

@@ -1,4 +1,4 @@
#import "math.kl"
#import "Math.core"
Epsilon :: 0.00001
Screen : *U32
@@ -90,13 +90,13 @@ Raymarcher_Update :: ()
// Windows specific code
//
#import "base.kl"
#import "arena.kl"
#import "os_windows.kl"
#import "kernel32.kl"
#import "gdi32.kl"
#import "user32.kl"
#import "winmm.kl"
#import "Base.core"
#import "Arena.core"
#import "Windows.core"
#import "KERNEL32.core"
#import "GDI32.core"
#import "USER32.core"
#import "WINMM.core"
Windows_Bitmap :: struct
size: Vec2I

View File

@@ -1,5 +1,5 @@
OS :: #import "os_windows.kl"
Base :: #import "base.kl"
OS :: #import "Windows.core"
Base :: #import "Base.core"
ArenaDI: U64
ADDITIONAL_COMMIT_SIZE :: 1024*1024

View File

@@ -1,5 +1,5 @@
OS :: #import "os_windows.kl"
#import "arena.kl"
OS :: #import "Windows.core"
#import "Arena.core"
SizeU :: U64
ClampTopSizeU :: (val: SizeU, max: SizeU): SizeU

View File

@@ -1,4 +1,4 @@
#import "kernel32.kl"
#import "KERNEL32.core"
RBGQUAD :: struct;; rgbBlue: BYTE; rgbGreen: BYTE; rgbRed: BYTE; rgbReserved: BYTE
BITMAPINFOHEADER :: struct;; biSize: DWORD; biWidth: LONG; biHeight: LONG; biPlanes: WORD; biBitCount: WORD; biCompression: DWORD; biSizeImage: DWORD; biXPelsPerMeter: LONG; biYPelsPerMeter: LONG; biClrUsed: DWORD; biClrImportant: DWORD
BITMAPINFO :: struct;; bmiHeader: BITMAPINFOHEADER; bmiColors: [1]RBGQUAD

View File

@@ -1,4 +1,4 @@
#import "kernel32.kl"
#import "KERNEL32.core"
WNDPROC :: (hwnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM): LRESULT
WNDCLASSW :: struct;; style: UINT; lpfnWndProc: WNDPROC; cbClsExtra: int; cbWndExtra: int; hInstance: HINSTANCE; hIcon: HICON; hCursor: HCURSOR; hbrBackground: HBRUSH; lpszMenuName: LPCWSTR; lpszClassName: LPCWSTR
MSG :: struct;; hwnd: HWND; message: UINT; wParam: WPARAM; lParam: LPARAM; time: DWORD; pt: POINT; lPrivate: DWORD

View File

@@ -1,4 +1,4 @@
#import "kernel32.kl"
#import "KERNEL32.core"
MMRESULT :: UINT
TIMERR_NOERROR :: 0

View File

@@ -1,5 +1,5 @@
#import "kernel32.kl"
#import "base.kl"
#import "KERNEL32.core"
#import "Base.core"
PAGE_SIZE :: 4096
Memory :: struct