initial commit
This commit is contained in:
commit
399a3e3453
7 changed files with 65 additions and 0 deletions
13
.editorconfig
Normal file
13
.editorconfig
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{c,h,grr}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[meson.build]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
/build
|
||||||
|
/.cache
|
||||||
|
/.envrc
|
||||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# growl
|
||||||
|
|
||||||
|
a concatenative programming language
|
||||||
13
include/growl.h
Normal file
13
include/growl.h
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#ifndef GROWL_H
|
||||||
|
#define GROWL_H
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
/* Common type definitions */
|
||||||
|
typedef void V;
|
||||||
|
typedef intptr_t I;
|
||||||
|
typedef uintptr_t U;
|
||||||
|
typedef size_t Z;
|
||||||
|
|
||||||
|
#endif
|
||||||
19
meson.build
Normal file
19
meson.build
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
project(
|
||||||
|
'growl',
|
||||||
|
'c',
|
||||||
|
meson_version : '>= 1.3.0',
|
||||||
|
version : '0.1',
|
||||||
|
default_options : ['c_std=c99', 'buildtype=debugoptimized', 'warning_level=3'],
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories = include_directories('include', 'src/core')
|
||||||
|
core_sources = []
|
||||||
|
|
||||||
|
exe = executable(
|
||||||
|
'grr',
|
||||||
|
core_sources, 'src/main.c',
|
||||||
|
include_directories : include_directories,
|
||||||
|
install : true,
|
||||||
|
)
|
||||||
|
|
||||||
|
test('basic', exe)
|
||||||
7
shell.nix
Normal file
7
shell.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
clang-tools meson ninja gdb
|
||||||
|
];
|
||||||
|
}
|
||||||
7
src/main.c
Normal file
7
src/main.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <growl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
printf("hello growl :o)\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue